How do I configure my TcpCacheServer and TreeCache throught XML file? I seems
not to find any example. My TcpCacheServer is running on localhost with port
12121 and the TreeCache associated with it is implemeting the FileCacheLoader.
Below is my snip code but doesn't work. Thanks.
Thread runner = new Thread()
{
public void run()
{
try {
System.out.println("Starting TcpCacheServer");
cache_server=new TcpCacheServer();
//cache_server.setBindAddress("127.0.0.1");
//cache_server.setPort(12121);
config = new PropertyConfigurator();
config.configure(cache_server, "PrimaryCacheLoader.xml");
//cache_server.setConfig("PrimaryCacheLoader.xml");
cache_server.createService();
System.out.println("connection: " +
cache_server.getConnections());
System.out.println("serverName: " +
cache_server.getMBeanServerName());
System.out.println("cache name: " +
cache_server.getCacheName());
cache_server.startService();
//register to get invalidation
//cache_server.getCache().addTreeCacheListener(new
TreeCacheListenerImpl(PrimaryCacheObject.this));
}
catch(Exception ex) {
ex.printStackTrace();
}
}
};
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3944687#3944687
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3944687
-------------------------------------------------------
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