Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Eclipselink, cache coordination

How are you configuring cache coordination currently?  What issue are you
currently having?

You best option with JPA is to configure cache coordination using a
SessionCustomizer.  In your customizer you will need to set the
RemoteCommandManager for the session.  Here is an example for RMI, you will
need to change the transport manager to use JMS.

        RemoteCommandManager cm = new RemoteCommandManager(session);
       
cm.getTransportManager().setNamingServiceType(TransportManager.REGISTRY_NAMING_SERVICE);
        // set full rmi URL of local host 
        cm.setUrl("rmi://localhost:41099");
        // turn on cache sync with RCM
        session.setShouldPropagateChanges(true);


chb75 wrote:
> 
> Hello,
> 
> I'm trying to set up a system with hopefully few writes and lots of reads.
> I need to be able to scale, so cache coordination seems to be just the
> thing. Problem is, I cannot get it started.
> 
> I'm not using the workbench (started with toplink-essentials, jpa). 
> 
> I'm using a tomcat together with
> OpenMQ
> 
> Trying to configure everything through the settings.xml
> 
> Log messages suggest that the file is read. Looks ok to me.
> 
> 
> Can someone spot something fundamentelly wrong with this or point me to
> some relevant information because although reading the wiki and searching
> the net has helped I can't get it off the ground.
> 


-----
---
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/Eclipselink%2C-cache-coordination-tp20343453p20362565.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top