Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Reusing EJBs  RSS feed

 
Rida Abrahams
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I would like ideas on best practices on sharing EJB components across multiple projects. EJB Stateless Session Beans in particular as I use Hibernate instead of entity beans.
My understaning is that one could just export the client interfaces to an EJB-JAR file and that would suffice in making the session beans reusable.
Is this correct?

Your input would be highly appreciated.

Thanks,

Rida
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36406
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rida Abrahams wrote:My understaning is that one could just export the client interfaces to an EJB-JAR file and that would suffice in making the session beans reusable.

It depends on how you want to reuse it. If you want to make remote calls, what you described is fine.

If you want to make local calls, you would jar up the whole EJB project and distribute that.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!