0 down vote favorite
I have made a simple project to
test the EJB3 implementation.
Using
maven I created into the project 3 modules respectively
"MyEjb" the
EJB,
"MyWeb" the war,
"MyWeb2" another war. The war module are the client of the EJB.
The problem is that when I deploy the EAR, the console says that there are 3 EJB context created one for each modules. The EJB context of the module MyEjb is not shared between the wars moduls, each of it take the data from each own MyEjb dependency.
I have to create the EJB interfaces in a separate JAR? I use
Jboss as application server.
Here the full project: https://github.com/AndreaCatania/EjbTest
Here the console: