[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [eclipselink-users] sharing persistence unit between apps
- From: James Sutherland <jamesssss@xxxxxxxxx>
- Date: Mon, 18 Aug 2008 11:16:07 -0700 (PDT)
- Delivered-to: email@example.com
This should work fine if you put the persistence unit of the server's applib
(server's shared classpath) and access it as application managed (i.e.
Persistence.class). I don't think there is any way to access it as
container managed, (i.e. injection), (although you could try, it might
Weaving will most likely not occur, so you could statically weave your jar.
> We have several applications which used to share a toplink server session,
> so they shared the cache. They are all running on the same server and need
> to know about each other's changes.
> Is the same possible with EclipseLink? I'd expect that sharing a
> persistence unit could do the trick. Is this possible? Or is there another
> way to share the server session? This stops us from migrating from toplink
> 10 (non-jpa) to eclipselink (jpa) for now, I'd really like to find some
http://wiki.eclipse.org/User:James.sutherland.oracle.com James Sutherland
EclipseLink , http://www.oracle.com/technology/products/ias/toplink/
Wiki: http://wiki.eclipse.org/EclipseLink EclipseLink ,
Forums: http://forums.oracle.com/forums/forum.jspa?forumID=48 TopLink ,
Book: http://en.wikibooks.org/wiki/Java_Persistence Java Persistence
View this message in context: http://www.nabble.com/sharing-persistence-unit-between-apps-tp19029789p19035643.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.