-
1. Re: Override remote EJB injection mechanism
wdfink Nov 21, 2013 9:43 AM (in response to nicolyra)You might have a look to the ejb-multi-server quickstart, here I show several methods to invoke remote EJB's.
Feel free to ask here if you have questions
-
2. Re: Override remote EJB injection mechanism
nicolyra Nov 21, 2013 10:08 AM (in response to wdfink)Thank you for you response, but I would like to force a JBOSS server to automatically connecting differents servers to call the same EJB.
For example :
On app1.ear is deployed on server1 and contains a jar with this class:
public class MyClass {
@EJB
MyClass02 injectIt;
...
}
MyClass02 implementation is contained in app2.ear deployed on server2 and server3.
I would lile to implements a mechanism wich allows server1 to connect server2 and, in case of problem, automatically contact server3 to inject MyClass02, without any jndi lookup.
-
3. Re: Override remote EJB injection mechanism
wdfink Nov 22, 2013 8:19 AM (in response to nicolyra)1 of 1 people found this helpfulThere are two possible solutions.
Use server 2+3 as a cluster or add both servers to the remote-outbound-connection configuration.
You can find how to do that in the MainAppBean and the related server configuration.
You might have a look to the releated document EJB invocations from a remote server instance
-
4. Re: Override remote EJB injection mechanism
nicolyra Nov 22, 2013 8:36 AM (in response to nicolyra)Indeed I am currently looking for information about clustering which might be the best solution I guess.
Thank you for your help.
I'll close the subject as soon as I'll find the solution.
-
5. Re: Override remote EJB injection mechanism
nicolyra Nov 29, 2013 5:04 AM (in response to nicolyra)Thank you for your help.
Indeed, cluster is the solution.
Many links which helped me :
http://www.mastertheboss.com/jboss-cluster/jboss-as-7-ha-tutorial/
https://docs.jboss.org/author/display/AS71/Clustered+EJBs
Overview of Client properties - EJB Client Library (AS7+) - Project Documentation Editor