-
1. Re: How to setup and invoke an EJB deployed on multiple remote servers from within another server instance
mp911de Feb 22, 2012 11:49 PM (in response to bessen)Hi Brian,
usually you would use an InitialContext ctx = new InitialContext(server1Properties) and new InitialContext(server2Properties) for that call.
There you can specify, which URL you want to use (connection to the server).
A different approach would be (in case you are in a cluster and want to call methods on all servers) using distributed MBeans (by using the cluster JMX notification). If you are interested in that, give me a short note on that.
Best regards,
Mark
-
2. Re: How to setup and invoke an EJB deployed on multiple remote servers from within another server instance
bessen Feb 23, 2012 2:34 PM (in response to mp911de)Mark,
Thanks for your quick response. I have tried to call EJBs from another JBoss 7.1.0.Final using your approach and it did not work. That was why I followed the instructions from the JBoss Web site:
https://docs.jboss.org/author/display/AS71/EJB+invocations+from+a+remote+server+instance
and it worked with one remote server. My question is if I want to make EJB connections to two or more servers then what I should configure and how I should connect to each remote server (EJBReceiver)?
-
3. Re: How to setup and invoke an EJB deployed on multiple remote servers from within another server instance
mp911de Feb 25, 2012 7:12 AM (in response to bessen)Hi Brian,
try the https://docs.jboss.org/author/display/AS71/EJB+invocations+from+a+remote+client+using+JNDI JNDI approach. It's more convenient, because you can supply properties. I'd propose also to give it a try specifying all the properties for the InitialContext(properties), there is a section about specifying EJB client context properties.
Best regards,
Mark