Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] sharing persistence context between ejb-jars in ear

Hi,

Is it possible to share a persistence context between ejb-jars of the same
enterprise application?

We used to have many applications, sharing entity classes. I was planning to
use cache coordination, but this would be, I thing, a lot of overhead.

I thought it could be a good idea to repackage all applications as one ear,
and share one persistence context, thus one cache. 

We have this now:

*APP1-EAR
**APP1-EJB
**APP1-WAR
**COMMON-MODEL.JAR
*APP2-EAR
**APP2-EJB
**APP2-WAR
**COMMON-MODEL.JAR

We would now have this:
*COMMON-EAR
**COMMON-MODEL.JAR
**APP1-EJB
**APP1-WAR
**APP2-EJB
**APP2-WAR

Does this sound like a good idea? I think it would solve a lot of problems
here...
-- 
View this message in context: http://www.nabble.com/sharing-persistence-context-between-ejb-jars-in-ear-tp20205088p20205088.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top