I'm running JBoss-4.2.0.GA with JBoss Messaging 1.3.0.GA. I've installed JBoss Messaging according to the "Clustered Automated Installation" instructions. I configured to run multiple instances of JBoss on my single machine. I successfully launch two server instances, and they successfully form a cluster.
When I try to run the distributed-queue example, I get the following output:
run:
[java] Distributed queue /queue/testDistributedQueue exists
[java] java.lang.RuntimeException: Assertion failed, 1 == 1
[java] at org.jboss.example.jms.common.ExampleSupport.assertNotEquals(ExampleSupport.java:82)
[java] at org.jboss.example.jms.distributedqueue.DistributedQueueExample.example(DistributedQueueExample.java:86)
[java] at org.jboss.example.jms.common.ExampleSupport.run(ExampleSupport.java:137)
[java] at org.jboss.example.jms.distributedqueue.DistributedQueueExample.main(DistributedQueueExample.java:186)
[java]
[java] #####################
[java] ### FAILURE! ###
[java] #####################
// ... so this is a connection to a cluster node connection0 = cf.createConnection(); // ... and this is a connection to a different cluster node connection1 = cf.createConnection(); // Let's make sure that (this example is also a smoke test) assertNotEquals(getServerID(connection0), getServerID(connection1));
Please disregard this question. I figured out what I had done wrong. I had copied oracle-persistence-service.xml instead of clustered-oracle-persistence-service.xml during installation. My apologies for the unnecessary post.