Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Glassfish and EclipseLink Coordinated Cache

I think the issue is,

rcm.setUrl ("rmi://$HOST:38686"); 

I think you need to put the real ip or host name, not $HOST.  This will need
to be different on each machine.  I think you can get this programatically
using, InetAddress.getLocalHost().getHostName().



vyavichev wrote:
> 
> Has anyone really succeeded in setting up cache coordination in Glassfish
> V2.1? I have configured two node cluster which uses EclipseLink and Oracle
> 10g. 
> 
> I used information from
> http://www.nabble.com/Experiments-with-Glassfish-and-coordinated-caching-tt16356582.html
> and
> http://www.nabble.com/Cache-Coordination-in-Glassfish-tt20963395.html#a21485846
> for configuring coordinated cache:
> 
> RemoteCommandManager rcm = new RemoteCommandManager ((CommandProcessor)
> session);
> 
> rcm.getDiscoveryManager ().setMulticastGroupAddress ("227.7.7.7");
> rcm.getDiscoveryManager ().setMulticastPort (3122);
> rcm.getDiscoveryManager ().setAnnouncementDelay (2000*10);
> 
> rcm.setChannel ("CacheCoordination"); 
> rcm.setShouldPropagateAsynchronously (true);
> 
> rcm.getTransportManager ().setNamingServiceType
> (TransportManager.REGISTRY_NAMING_SERVICE);
> rcm.getTransportManager ().setUserName ("admin"); 
> rcm.getTransportManager ().setPassword ("adminadmin");
> rcm.setUrl ("rmi://$HOST:38686");
> 
> rcm.setServerPlatform (session.getServerPlatform ());
> ((DatabaseSession) session).setCommandManager (rcm);
> ((DatabaseSession) session).setShouldPropagateChanges (true);
> rcm.initialize ();
> 
> 
> I see in log "RCM Discovery Manager active" message and nothing happens.
> There is no cache synchronization between cluster nodes.
> 
> Any ideas? 
> 
> 


-----
---
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/Glassfish-and-EclipseLink-Coordinated-Cache-tp23283922p23316907.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top