WLST has the ability to browse the JNDI tree of
the domain. An interesting fact is that with this WLST feature, not
only can you browse the JNDI tree of the server you are connected
to, but you can also browse the JNDI tree of all other running (!)
managed servers (if you are connected to AdminServer).
Note that the usual WLST commands like
cmo and others do not
work.
wls:/medrec/serverConfig>
wls:/medrec/serverConfig> jndi()
wls:/medrec/jndi> ls()
dr--
MedRecServer
wls:/medrec/jndi> cd ('MedRecServer')
wls:/medrec/jndi/MedRecServer> ls()
dr--
com
dr--
ejb
dr--
javax
dr--
jdbc
dr--
mail
dr--
weblogic
-r--
medrecmedrec-facade_jarRmiPatientFacadeBroker_Homeweblogic.rmi.cluster.ClusterableRemoteObject
-r--
mejbmejb_jarMejb_EO
weblogic.rmi.cluster.ClusterableRemoteObject
-r--
physicianmedrec-facade_jarRmiPatientFacadeBroker_Homeweblogic.rmi.cluster.ClusterableRemoteObject
See the book code download for full
script
wls:/medrec/jndi/MedRecServer> cd ('jdbc')
wls:/medrec/jndi/MedRecServer/jdbc> ls()
-r--
MedRecGlobalDataSourceXA
weblogic.rmi.cluster.ClusterableRemoteObject
wls:/medrec/jndi/MedRecServer> cd ('javax')
wls:/medrec/jndi/MedRecServer/javax> ls()
dr--
jms
dr--
transaction
wls:/medrec/jndi/MedRecServer/javax> cd ('jms')
wls:/medrec/jndi/MedRecServer/javax/jms> ls()
-r--
QueueConnectionFactory
weblogic.rmi.cluster.ClusterableRemoteObject
-r--
TopicConnectionFactory
weblogic.rmi.cluster.ClusterableRemoteObject
wls:/medrec/jndi/MedRecServer/javax> cd
('transaction')
wls:/medrec/jndi/MedRecServer/javax/transaction>
ls()
-r--
TransactionManager
weblogic.transaction.internal.ClientTransactionManagerImpl
-r--
TransactionSynchronizationRegistry
weblogic.transaction.internal.ClientTransactionManagerImpl
-r--
UserTransaction
weblogic.transaction.internal.ClientTransactionManagerImpl
If you are connected to a domain with multiple
running servers, you can choose which JNDI tree you want to browse.
wls:/MartinTest_Domain/serverConfig> jndi()
Location changed to jndi tree. This is a
read-only tree with No root.
For more help, use help(jndi)
wls:/MartinTest_Domain/jndi> ls()
dr--
AdminServer
dr--
MartinTest_Domain_MS1
dr--
MartinTest_Domain_MS2
wls:/MartinTest_Domain/jndi> cd ('MartinTest_Domain_MS1')
wls:/MartinTest_Domain/jndi/MartinTest_Domain_MS1>
ls()
dr--
javax
dr--
weblogic