JBoss Community

enquiry on EJB invocations from remote client using JNDI

created by fan kam thong in JBoss AS 7 Development - View the full discussion

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

Reply to this message by going to Community

Start a new discussion in JBoss AS 7 Development at Community