[jboss-user] [JBossCache] - Re: Distributed Hashtable and JGroups

JerryGauth do-not-reply at jboss.com
Wed Feb 14 16:19:58 EST 2007


You can instantiate a multiplexer channel from a client as follows.

STACK_FILE = "stacks.xml";
STACK_NAME = "udp";

JChannelFactory factory=new JChannelFactory();
factory.setMultiplexerConfig(STACK_FILE);
Channel channel = factory.createMultiplexerChannel(STACK_NAME, "foo"); 
channel.connect("my group");   

STACK_FILE must be on your classpath; JGroups provides a file named stacks.xml in its distributable jar.  You can use this file or create your own with customized stacks.  STACK_NAME refers to the stack within STACK_FILE.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016642#4016642

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016642



More information about the jboss-user mailing list