InfoCenter Home >
6: Administer applications >
6.6: Tools and resources quick reference >
6.6.0: About user assistance >
6.6.0.2: Command line administration >
6.6.0.2.2: WebSphere Control Program (wscp) >
6.6.0.2.2.3: Advanced usage of wscp >
6.6.0.2.2.3.9: Manipulating the JNDI context of objects

6.6.0.2.2.3.9: Manipulating the JNDI context of objects

The wscp Context operations allow you to manipulate the Java Naming and Directory Interface (JNDI) context of objects that use JNDI name bindings, such as J2CConnectionFactory, DataSource, URL and MailSession objects.

The following example creates an initial JNDI context:

wscp> Context init

The following command binds a MailSession object to the JNDI naming context ejsadmin:

wscp> Context bind /MailSession:UserMail/  ejsadmin

The following command unbinds a DataSource object from itsJNDI naming context:

wscp> Context unbind /JDBCDriver:DB2drv/DataSource:appData/

For more information on JNDI, see JNDI (Java Naming and Directory Interface) overview.

Go to previous article: 6.6.0.2.2.3.8: Enabling tracing with DrAdmin Go to next article: 6.6.0.2.2.3.10: Monitoring performance

 

 
Go to previous article: 6.6.0.2.2.3.8: Enabling tracing with DrAdmin Go to next article: 6.6.0.2.2.3.10: Monitoring performance