[jboss-user] [JBossCache] - Re: PojoCache 2.0 (replicate method execution)
mleur
do-not-reply at jboss.com
Fri Nov 3 09:09:17 EST 2006
Hi,
Thanks for your response, I tries to create a new RpcTreeCache and call my method... but it doesn't work again with the same exception.
XmlConfigurationParser parser = new XmlConfigurationParser();
| Configuration conf = parser.parseFile( "cache-config.xml" );
| TimerSessionValidity timer = new TimerSessionValidity("maxime","id");
|
| RpcTreeCache rpcCache = new RpcTreeCache();
| rpcCache.setConfiguration(conf);
| rpcCache.start();
|
| Method method = timer.getClass().getMethod("pingSession2",new Class[]{String.class});
| rpcCache.registerRPCHandler("timer", timer);
| rpcCache.callRemoteMethods("timer",rpcCache.getMembers(), method,new Object[]{ "maxime"}, false, false, (long) 1000);
Could you give a simple code example of RPC calls ???
Because I am lost.
Many Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982974#3982974
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982974
More information about the jboss-user
mailing list