Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Cache coordination (How to set up cache coordination)
Cache coordination [message #493680] Tue, 27 October 2009 14:41 Go to next message
Pablo  is currently offline Pablo Friend
Messages: 5
Registered: October 2009
Junior Member
Hi everyone,

We are deploying our Enterprise application (EJB with EclipseLink 1.2 JPA + WAR) to a glassfish cluster and we are ment to go into production in less than a week

Jet, we haven´t worked out how to synchronize the EclipseLink cache.

Three huys here have read this article:
where it says Select a server session in the Navigator
How do we create s server session?

we haven´t either been eable to see that dialog in the IDE or been eable to code the necessary code.

where it says it can be done by coding:
If it refers to the session in a session customizer, there is no such thing as a getCommandManager()

Someone told me that we can set the necesary properties in Persistence.XML but after setting them (as per there is no signs of cache coordination whatsoever in the logs.

If any of you has done this before, could you send us a code snippet of how to do it or explain a bit better how to use the IDE

Any help will be very appreciated.

Thanks pablo.


[Updated on: Tue, 27 October 2009 14:46]

Report message to a moderator

Re: Cache coordination [message #494176 is a reply to message #493680] Thu, 29 October 2009 13:28 Go to previous message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

Ignore the user doc, it is based on the EclipseLink native API and MW, not JPA.

If you use the latest 1.2 release, the persistence.xml properties should work,

see, stence/config/PersistenceUnitProperties.html#COORDINATION_PR OTOCOL

For 1.1, you will need to configure things in code.
The CommandManager is defined on the DatabaseSession interface, you will need to cast the Session to this.

see, stence/sessions/DatabaseSession.html#setCommandManager (org.eclipse.persistence.sessions.coordination.CommandManage r) stence/sessions/coordination/RemoteCommandManager.html

James : Wiki : Book : Blog : Twitter
Previous Topic:JAPA search query on DB
Next Topic:Equinox Weaving Problem
Goto Forum:

Current Time: Tue Apr 07 10:50:44 GMT 2020

Powered by FUDForum. Page generated in 0.01743 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top