Version 3

    Remotely connecting to a process running Embedded JBoss

     

    JNDI, EJBs, and JMS are remotely accessible by default in an Embedded JBoss deployment.  The JNDI properties should be:

     

    java.naming.factory.initial=org.jboss.naming.JBossRemotingContextFactory
    java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
    java.naming.provider.url=socket://hostname:3873
    

     

    The bind addresses and port settings are defined in deploy/remoting-service.xml.  The connector defined there is a JBoss Remoting connector.  This connector is used by both JNDI and EJB.  JMS uses a different connector for sending messages.  This is defined in deploy/messaging/remoting-service.xml