|Cache coordination [message #493680]
||Tue, 27 October 2009 14:41
Registered: October 2009
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 PersistenceUnitProperties.java) 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.
[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
| James Sutherland
Registered: July 2009
Location: Ottawa, Canada
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,
http://www.eclipse.org/eclipselink/api/1.2/org/eclipse/persi 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.
http://www.eclipse.org/eclipselink/api/1.2/org/eclipse/persi stence/sessions/DatabaseSession.html#setCommandManager (org.eclipse.persistence.sessions.coordination.CommandManage r)
James : Wiki : Book : Blog : Twitter
Powered by FUDForum
. Page generated in 0.01579 seconds