How to import only the interface of EJB3 into the client?
posted 2 years ago
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.