configureBroadcastHandlers();
try
{
JChannelFactory channelFactory = new JChannelFactory(props);
clusterChannel = (JChannel) channelFactory.createChannel();
// Disable delivery of messages we send to ourself.
clusterChannel.setOpt(Channel.LOCAL, Boolean.FALSE);
//clusterChannel.setOpt(Channel.AUTO_RECONNECT, Boolean.TRUE);
broadcastDispatcher = new MessageDispatcher(clusterChannel, null, clusterMembershipListener, this);
clusterChannel.connect(clusterId);