users@glassfish.java.net

EclipseLink Coordinated Cache

From: <glassfish_at_javadesktop.org>
Date: Tue, 28 Apr 2009 10:56:33 PDT

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 my nodes.

Any ideas?
[Message sent by forum member 'vyavichev' (vyavichev)]

http://forums.java.net/jive/thread.jspa?messageID=344184