Procedure to do EJB calls from one AS7 instance to another ?
manawajaws Feb 21, 2014 10:10 AMHello community.
I know there have been tons of articles and threads on this issue, but I cannot make it work !
Situation:
Migration from JBoss 5.0 to JBoss 7.
Problem:
Cannot make EJB calls between 2 instances of AS 7.
Requirement:
The environment consists of many standalone instances running the same deployment on different geographic locations.
The JBoss instances need to communicate to each other via EJB calls.
Each instance has a specific role.
EJB calls have to be done dynamically (programmatically).
So I cannot use the .properties solutions: all the IPs have to be set programmatically like the good old:
props.put(InitialContext.PROVIDER_URL, "jnp://192.168.1.1:1099");
Tests:
Having read and tried all of the proposed solutions (mainly by the very patient jaikiran), articles, threads, JIRA issues like:
https://docs.jboss.org/author/display/AS72/EJB+invocations+from+a+remote+client+using+JNDI
https://docs.jboss.org/author/display/AS71/EJB+invocations+from+a+remote+server+instance (cannot be used as IPs are hardcoded in property files)
I have tried all possible combinations with the following:
. JBoss AS 7.1.1
. JBoss EAP 6.1.0 Apha
using the JNDI method with
jndiProps.put(Context.PROVIDER_URL, "remote://192.168.1.2:4447");
...dasd099");
. using the EJB Client API with:
jndiProps.put("remote.connection.default.host","192.168.1.2");
...
. using the scope EJB Context with:
jndiProps1.put("org.jboss.ejb.client.scoped.context", "true");
I cannot make a EJB Call from one AS7 to another.
No problem from a standalone client to AS7.
But impossible from one instance of AS7 to another.
It really is a blocker for our application.
So do you have a step by step procedure to get around this issue?
Or is it gonna be fixed / available in future releases of WildFly ?
All the propositions I've found so far failed in getting it to work.
So in the meatime we will stick to AS 5.0.0 wich is a shame, JBoss 7 seems very appealing.
Thank you for your patience and help!
Cheers
Fab