WildFly JNDI Concepts: Difference between revisions
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
For example, a JMS queue registered under "java:jboss/exported/jms/queue/TestQueue" can be looked up remotely as "jms/queue/TestQueue". | For example, a JMS queue registered under "java:jboss/exported/jms/queue/TestQueue" can be looked up remotely as "jms/queue/TestQueue". | ||
This is made possible by a ''remote naming server'' that exposes this namespace over remoting. The remote naming server has to be explicitly activated in configuration: | |||
{{Internal|WildFly_Naming_Subsystem_Configuration#.3Cremote-naming.3E|How to Activate the Remoting Naming Server}} | |||
=Remote Programmatic JNDI Access= | =Remote Programmatic JNDI Access= |
Revision as of 17:40, 3 April 2017
Internal
JNDI and Remoting
See
Exporting for access by Remote JNDI Clients
If an object registered to JNDI is supposed to be looked up by remote (running in different JVM) JNDI clients, then the object must be registered under the "java:jboss/exported" JNDI context. When it is looked up remotely, the "java:jboss/exported" prefix must be omitted.
For example, a JMS queue registered under "java:jboss/exported/jms/queue/TestQueue" can be looked up remotely as "jms/queue/TestQueue".
This is made possible by a remote naming server that exposes this namespace over remoting. The remote naming server has to be explicitly activated in configuration:
Remote Programmatic JNDI Access
HA JNDI
TODO
What does this mean? remoting://host1:4447,host2:4547