-
1. Re: Does JBoss 7 support local EJB clients from different applications?
wdfink Feb 3, 2013 4:54 PM (in response to tinche)1 of 1 people found this helpfulI've not checked explicit, but I've used this in former versions. I see no reason why it should not supported.
You can call via local interface if you run the application in the same JVM (server instance)
-
2. Re: Does JBoss 7 support local EJB clients from different applications?
tinche Feb 11, 2013 5:05 AM (in response to wdfink)Possibly because of the way JBoss isolates different deployments. I was hoping for an authoritative answer, since the documentation for this is currently missing. (https://docs.jboss.org/author/display/AS71/Enterprise+JavaBeans+Technology+%28EJB%29)
-
3. Re: Does JBoss 7 support local EJB clients from different applications?
jaikiran Feb 12, 2013 9:13 AM (in response to tinche)1 of 1 people found this helpfulYou should not be using local interfaces for that instead you should be using remote interfaces. Take a look at this Java EE documentation http://docs.oracle.com/javaee/6/tutorial/doc/gipjf.html#gipiz (the "Local Clients") section. Here's the relevant part:
Local Clients
A local client has these characteristics.
- It must run in the same application as the enterprise bean it accesses.
-
4. Re: Does JBoss 7 support local EJB clients from different applications?
tinche Feb 12, 2013 9:26 AM (in response to jaikiran)That's fine, we do use remote interfaces.
The spec (in the OP) states vendors are required to support remote access, but may support local access as well. I was curious whether JBoss supports it or not. Judging by your answer, I'm going to go with a definite 'no'.
Which is perfectly fine, but might be clearly stated in the documentation.
-
5. Re: Does JBoss 7 support local EJB clients from different applications?
fobos Feb 19, 2015 11:02 AM (in response to tinche)Just to updating the post, two years later(feb/2015) I make this test and the behavior is the same yet. JBoss does not support call of EJB using Local interfaces client from other application in the same container instance that is not the same package where EJB is contained.
I made a simple injection in a Servlet using @EJB and this runs only when I use @Remote interface
Curiously using Apache Camel with Spring, in a route using "ejb" component is possible to use @Local interface in a separate app to call EJB