[jboss-user] [JBoss Messaging] - Re: Example how to use LoadBalancingFactory
maxogm
do-not-reply at jboss.com
Fri May 8 07:27:16 EDT 2009
I started two JBoss 5.0.1GA instance:
| run.bat -c node1 -Djboss.service.binding.set=ports-01 -b 10.133.1.158
| run.bat -c node2 -Djboss.service.binding.set=ports-02 -Djboss.messaging.ServerPeerID=1 -b 10.133.1.218
|
node1 and node2 are copy of all configuration
After that I make project in eclipse, in the project i copy 'distributed-topic' example from jboss-messaging-1.4.2GA-sp1...
When I debug application... application will stop on line:
| cf = (ConnectionFactory)ic.lookup("/ClusteredConnectionFactory");
|
I checked in connection-factories-service.xml file, and i have:
| <mbean code="org.jboss.jms.server.connectionfactory.ConnectionFactory"
| name="jboss.messaging.connectionfactory:service=ClusteredConnectionFactory"
| xmbean-dd="xmdesc/ConnectionFactory-xmbean.xml">
| <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
| <depends optional-attribute-name="Connector">jboss.messaging:service=Connector,transport=bisocket</depends>
| <depends>jboss.messaging:service=PostOffice</depends>
|
| <attribute name="JNDIBindings">
| <bindings>
| <binding>/ClusteredConnectionFactory</binding>
| <binding>/ClusteredXAConnectionFactory</binding>
| <binding>java:/ClusteredConnectionFactory</binding>
| <binding>java:/ClusteredXAConnectionFactory</binding>
| </bindings>
| </attribute>
|
| <attribute name="SupportsFailover">true</attribute>
| <attribute name="SupportsLoadBalancing">true</attribute>
| </mbean>
|
I did not do any editing on Jboss, just download, unzip and start
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4229678#4229678
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4229678
More information about the jboss-user
mailing list