I'm running Jbosscache inside WebLogic 7; I have two Weblogic instance and I
reoplicate a state between them.
When I start, even ONLY ONE Weblogic instance, I see the following lines
displayed:
-------------------------------------------------------
GMS: address is 1.5.28.121:4875
-------------------------------------------------------
-------------------------------------------------------
GMS: address is 1.5.28.121:4879
-------------------------------------------------------
i.e. I see TWO GMS lines (1.5.28.121 is the address specificated in the
JBossCache config file).
The piece of code is:
private RepositoryDenormalizzato()
{
try {
connTokenMonitorTree = new TreeCache();
PropertyConfigurator config = new PropertyConfigurator();
config.configure(connTokenMonitorTree,
"META-INF/mioreplSync-service.xml");
connTokenMonitorTree.setClusterName("conntokenmonitor");
connTokenMonitorTree.startService();
Ascoltatore asc = new Ascoltatore();
connTokenMonitorTree.addTreeCacheListener(asc);
}
catch (Exception e) {
System.out.println("ECCEZIONE impossibile attivare cluster "+e);
e.printStackTrace();
}
}
and this method is the constructor of a Singleton class.
When I run the same code as a stand alone program outside Weblogic, the GMS
line is displayed once.
Of course, in WebLogic, the TreeCacheListener sees all events as "doubled".
I.e., when I create a node, method "nodeCreated" is executed twice. When I
remove a node, method "nodeRemoved" is executed twice, and so on.
Why this happens?
TIA
matabo
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956075#3956075
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956075
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user