1 2 Previous Next 22 Replies Latest reply on Jun 13, 2012 5:50 PM by shadowcreeper

    How to specify host/port in remote JNDI lookup on JBoss 7.1.1.Final?

    shadowcreeper Apprentice

      When doing remote JNDI lookup of EJB on JBoss AS 7.1.1.Final it appears that you are not able to specify the host/port for lookup.


      Using jboss-ejb-client.properties you can specify a list of connections (host/port/username/etc) but all lookups seem to do some sort of round-robin approach as to which server to connect to, stopping at the first server which has the bean registered. I have found no way to specify which connection to use for a particular lookup.


      I have found some people claiming that the "old way" of specifying Context.PROVIDER_URL "remote://host:port" in your InitialContext(properties) should work as of 7.1.1, but it always gives me: "java.lang.IllegalStateException: No EJB receiver available for handling ...".


      Are those people lying? Or is there a way to specify the host/port to use for a remote ejb?

        1 2 Previous Next