This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript 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
Marshal
Posts: 37180
515
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!