5 Replies Latest reply: Mar 14, 2012 10:32 PM by jaikiran pai RSS

    enquiry on EJB invocations from remote client using JNDI

    fan kam thong Newbie

      I have a requirement for a client to invoke the EJB services in different servers based on the client application runtime logic.

       

      With reference to this developer guide https://docs.jboss.org/author/display/AS71/EJB+invocations+from+a+remote+client+using+JNDI, we can set up mulitple connections on the jboss-ejb-client.properties and from my reading from other topic, these multiple connections are meant for when connection One is down, the invocation will go to connection Two. What if I need to

      explicitly invoke the connection Two based on the client application runtime logic, how can I do that ?

       

       

      remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=false

       

       

      remote.connections=one, two

       

      remote.connection.one.host=localhost

      remote.connection.one.port=6999

      remote.connection.one.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false

       

      remote.connection.two.host=localhost

      remote.connection.two.port=7999

      remote.connection.two.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false