Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to import only the interface of EJB3 into the client?  RSS feed

Andrea Catania
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:

Here the console:
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!