Version 4

    JNDI Properties

     

    jndi.properties on the remote client resides in the Classpath and looks like this:

     

    #jboss JNDI properties
    java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
    java.naming.provider.url=jnp://localhost:1099
    java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
    

     

    Replace localhost with the jboss's DNS name or IP and if you have configured the jboss naming service for some other port, you will need to change the 1099 to reflect that port.

     

    See NamingContextFactory for more options.