xmlBlaster 2.2.0 API

org.xmlBlaster.test.util
Class JndiDumper

java.lang.Object
  extended by org.xmlBlaster.test.util.JndiDumper

public class JndiDumper
extends java.lang.Object

JndiDumper is used to analize the specified context.

Author:
Michele Laghi

Constructor Summary
JndiDumper()
           
 
Method Summary
static void main(java.lang.String[] args)
          JNDI determines each property's value by merging the values from the following two sources, in order:

The first occurrence of the property from the constructor's environment parameter and (for appropriate properties) the applet parameters and system properties.

static void scanContext(java.lang.String contextName, javax.naming.Context context, java.io.PrintStream out)
          Scans the context recursively
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JndiDumper

public JndiDumper()
Method Detail

scanContext

public static void scanContext(java.lang.String contextName,
                               javax.naming.Context context,
                               java.io.PrintStream out)
                        throws javax.naming.NamingException
Scans the context recursively

Parameters:
offset -
context -
out -
Throws:
javax.naming.NamingException

main

public static void main(java.lang.String[] args)
JNDI determines each property's value by merging the values from the following two sources, in order:

The first occurrence of the property from the constructor's environment parameter and (for appropriate properties) the applet parameters and system properties. The application resource files (jndi.properties).

 com.sun.jndi.ldap.LdapCtxFactory
 com.sun.jndi.fscontext.RefFSContextFactory
 com.ibm.ejs.ns.jndi.CNInitialContextFactory
 com.ibm.websphere.naming.WsnInitialContextFactory
 org.jnp.interfaces.NamingContextFactory       (JBoss)

 java -Djava.naming.factory.initial=com.ibm.websphere.naming.WsnInitialContextFactory org.xmlBlaster.test.util.JndiDumper -startNamingService true -fillNames true

 Dump rmiregistry:
 java -Djava.naming.factory.initial=com.sun.jndi.rmi.registry.RegistryContextFactory -Djava.naming.provider.url=rmi://localhost:1099 org.xmlBlaster.test.util.JndiDumper -fillNames false
 JBoss:
 java -Djava.naming.factory.initial=org.jnp.interfaces.NamingContextFactory  -Djava.naming.provider.url=jnp://localhost:1099 org.xmlBlaster.test.util.JndiDumper -fillNames false
 


xmlBlaster 2.2.0 API

Copyright © 1999-2014 The xmlBlaster.org contributers.