Disabling Clustering in JBM 1.4.0(or in EAP 4.3)
JBoss Messaging clustering is defined inside of the configuration file that establishes persistence(-persistence-service.xml) in the $/deploy/jboss-messaging.sar directory. Note: when you configure messaging to use a different persistence, part of the instructions are to copy the -persistence-service.xml file for your database from the docs/examples/jms/ directory and delete the hypersonic one. Most of the configurations in docs/examples/jms contain entries to be clustered. This wiki shows you how to disable clustering in the -persistence-service.xml file. Step 1. Open your $/deploy/jboss-messaging.sar/-persistence-service.xml file
*Step 2.* Look for the entry "
"
step 3. change "
step 4. remove (or comment out) all of the rest of the attributes below your previous change(only delete down to the mbean close tag)
to be deleted...
<!-- All the remaining properties only have to be specified if the post office is clustered. You can safely comment them out if your post office is non clustered --> <!-- The JGroups group name that the post office will use --> <attribute name="GroupName">${jboss.messaging.groupname:MessagingPostOffice}</attribute> <!-- Max time to wait for state to arrive when the post office joins the cluster --> <attribute name="StateTimeout">30000</attribute> <!-- Max time to wait for a synchronous call to node members using the MessageDispatcher --> <attribute name="CastTimeout">30000</attribute> <!-- JGroups stack configuration for the data channel - used for sending data across the cluster --> <!-- By default we use the TCP stack for data --> <attribute name="DataChannelConfig"> <config> <TCP start_port="7900" loopback="true" recv_buf_size="20000000" send_buf_size="640000" discard_incompatible_packets="true" max_bundle_size="64000" max_bundle_timeout="30" use_incoming_packet_handler="true" use_outgoing_packet_handler="false" down_thread="false" up_thread="false" enable_bundling="false" use_send_queues="false" sock_conn_timeout="300" skip_suspected_members="true"></TCP> <MPING timeout="4000" mcast_addr="${jboss.messaging.datachanneludpaddress:228.6.6.6}" mcast_port="${jboss.messaging.datachanneludpport:45567}" ip_ttl="${jboss.messaging.ipttl:8}" num_initial_members="2" num_ping_requests="1"></MPING> <MERGE2 max_interval="100000" down_thread="false" up_thread="false" min_interval="20000"></MERGE2> <FD_SOCK down_thread="false" up_thread="false"></FD_SOCK> <VERIFY_SUSPECT timeout="1500" down_thread="false" up_thread="false"></VERIFY_SUSPECT> <pbcast.NAKACK max_xmit_size="60000" use_mcast_xmit="false" gc_lag="0" retransmit_timeout="300,600,1200,2400,4800" down_thread="false" up_thread="false" discard_delivered_msgs="true"></pbcast> <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000" down_thread="false" up_thread="false" max_bytes="400000"></pbcast> <pbcast.GMS print_local_addr="true" join_timeout="3000" down_thread="false" up_thread="false" join_retry_timeout="2000" shun="false" view_bundling="true"></pbcast> </config> </attribute> <!-- JGroups stack configuration to use for the control channel - used for control messages --> <!-- We use udp stack for the control channel --> <attribute name="ControlChannelConfig"> <config> <UDP mcast_addr="${jboss.messaging.controlchanneludpaddress:228.7.7.7}" mcast_port="${jboss.messaging.controlchanneludpport:45568}" tos="8" ucast_recv_buf_size="20000000" ucast_send_buf_size="640000" mcast_recv_buf_size="25000000" mcast_send_buf_size="640000" loopback="false" discard_incompatible_packets="true" max_bundle_size="64000" max_bundle_timeout="30" use_incoming_packet_handler="true" use_outgoing_packet_handler="false" ip_ttl="${jboss.messaging.ipttl:2}" down_thread="false" up_thread="false" enable_bundling="false"></UDP> <PING timeout="2000" down_thread="false" up_thread="false" num_initial_members="3"></PING> <MERGE2 max_interval="100000" down_thread="false" up_thread="false" min_interval="20000"></MERGE2> <FD_SOCK down_thread="false" up_thread="false"></FD_SOCK> <FD timeout="10000" max_tries="5" down_thread="false" up_thread="false" shun="true"></FD> <VERIFY_SUSPECT timeout="1500" down_thread="false" up_thread="false"></VERIFY_SUSPECT> <pbcast.NAKACK max_xmit_size="60000" use_mcast_xmit="false" gc_lag="0" retransmit_timeout="300,600,1200,2400,4800" down_thread="false" up_thread="false" discard_delivered_msgs="true"></pbcast> <UNICAST timeout="300,600,1200,2400,3600" down_thread="false" up_thread="false"></UNICAST> <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000" down_thread="false" up_thread="false" max_bytes="400000"></pbcast> <pbcast.GMS print_local_addr="true" join_timeout="3000" use_flush="true" flush_timeout="3000" down_thread="false" up_thread="false" join_retry_timeout="2000" shun="false" view_bundling="true"></pbcast> <FRAG2 frag_size="60000" down_thread="false" up_thread="false"></FRAG2> <pbcast.STATE_TRANSFER down_thread="false" up_thread="false" use_flush="true" flush_timeout="3000"></pbcast> <pbcast.FLUSH down_thread="false" up_thread="false" timeout="20000" auto_flush_conf="false"></pbcast> </config> </attribute>
Comments