Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] Eclipselink in clustered environment.

Hello,

 

I am trying to setup eclipselink in clustered environment. We don’t have JMS provider and hence would like to setup RMI based coordination for L2 cache. However I am finding it difficult to make it work. Looking at various examples and eclipselink cache coordination documentation at http://wiki.eclipse.org/Introduction_to_Cache_%28ELUG%29#Cache_Coordination_API wrote following code

 in a SessionCustomizer

 

            session.setProperty("eclipselink.cache.coordination.protocol", "rmi");

            //Use default EclipseLinkCommandChannel for propagation

            CommandManager cm = new RemoteCommandManager((CommandProcessor)session);

            cm.setShouldPropagateAsynchronously(true);

            DiscoveryManager dm = cm.getDiscoveryManager();

            dm.setAnnouncementDelay(1000);

            dm.setMulticastGroupAddress(“224.0.0.1”);

            dm.setMulticastPort(“2000”);

            dm.setPacketTimeToLive(2);

 

However this doesn’t seem to be working. I am sure I am missing something here. Does somebody have a working example of cache coordination setup using RMI?

 

TIA,

Shashi


Back to the top