[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [eclipselink-users] sharing persistence context between ejb-jars in ear
|
Good idea.
ymajoros wrote:
>
> 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...
>
-----
---
http://wiki.eclipse.org/User:James.sutherland.oracle.com James Sutherland
http://www.eclipse.org/eclipselink/
EclipseLink , http://www.oracle.com/technology/products/ias/toplink/
TopLink
Wiki: http://wiki.eclipse.org/EclipseLink EclipseLink ,
http://wiki.oracle.com/page/TopLink TopLink
Forums: http://forums.oracle.com/forums/forum.jspa?forumID=48 TopLink ,
http://www.nabble.com/EclipseLink-f26430.html EclipseLink
Book: http://en.wikibooks.org/wiki/Java_Persistence Java Persistence
--
View this message in context: http://www.nabble.com/sharing-persistence-context-between-ejb-jars-in-ear-tp20205088p20207418.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.