9 Replies Latest reply on Mar 11, 2008 5:44 PM by clebert.suconic

    JBoss Messaging clustering

    143564

      Hi,

      I installed jboss messaging 1.4.0sp3 in 2 nodes (jboss 4.2.1GA) .I configured properly (some default configuration) for clustering.I given unique id for sever peer. and i created jms destinations with clustering(given clustering is truein destination.xml). When i started to test the jms queue in single node , working fine.but when the 2 nodes at running at same time in cluster mode, messages are not sending to end point. no errors are throwing.there is no execution of my code.but if any one of the node is forced to down all the message queue are sending properly.

      I dont know what actually the problem in clustering.Please help me someone.

      Thanks in advance

        • 1. Re:  JBoss Messaging clustering
          timfox

          Did you manage to successfully run the examples, including the clustering examples?

          (See user guide)

          • 2. Re:  JBoss Messaging clustering
            143564

            Hi ,
            Thanks for your reply.Examples are working fine. but the example destinations are not clustered.for example,

            but my destinations are having,extra attribute which is clustered is true
            true

            Is it wrong? i followed as per the specification.when changed it as false, working fine.

            • 3. Re:  JBoss Messaging clustering
              143564

              Hi,
              - Queue and Topic examples ran well
              - Getting exceptions while trying to run the other(Queue Failover, mdb etc.) examples.
              - When I shut down the Node1 server
              - Queue and Topic examples ran well
              - Getting exceptions while trying to run the other(Queue Failover, mdb etc.) examples.

              I get following error when i execution the distributed-queue

              compile:

              run:
              [java] Distributed queue /queue/testDistributedQueue exists
              [java] java.lang.RuntimeException: Assertion failed, 2 == 2
              [java] at org.jboss.example.jms.common.ExampleSupport.assertNotEquals(ExampleSupport.java:85)
              [java] at org.jboss.example.jms.distributedqueue.DistributedQueueExample.example(DistributedQueueExample.java:83)
              [java] at org.jboss.example.jms.common.ExampleSupport.run(ExampleSupport.java:147)
              [java] at org.jboss.example.jms.distributedqueue.DistributedQueueExample.main(DistributedQueueExample.java:167)
              [java]
              [java] #####################
              [java] ### FAILURE! ###
              [java] #####################

              BUILD FAILED
              /opt/jboss-messaging-1.4.0.SP3/examples/distributed-queue/build.xml:85: Java returned: 1

              • 4. Re:  JBoss Messaging clustering
                timfox

                Sounds like your installation failed.

                Did you follow the installation instructions in the user guide exactly?

                • 5. Re:  JBoss Messaging clustering
                  143564

                  Thanks for your reply.
                  I configured properly.i alreay configured my ejb clustering, tree cachee .. working finely.

                  JBM examples are working fine except the failover queue & distributed queues . I dont know what i did wrong.
                  I couldn't find actual problem in my configuration.
                  What is mean of RuntimeException:Assertion failed, 2 == 2 ?

                  Please help me ..

                  • 6. Re:  JBoss Messaging clustering
                    143564

                    Hi,
                    Example does indeed work out of the box when I run it the with two instances on the same machine (as described in the user guide). But shifting over to two boxes different machines is still broken, even when changing to an IP address bind.

                    I noticed when starting up two instances on the same machine I didn't get any SUSPECT messages. Is there a reason I would be getting those in a two machine situation? Would it affect the outcome of the test?

                    • 7. Re:  JBoss Messaging clustering
                      clebert.suconic

                      Take a look on the build.xml under examples... I believe it's binding to localhost.

                      • 8. Re:  JBoss Messaging clustering
                        clebert.suconic

                        Actually... under ./mdb/etc

                        File: jndi.properties:

                        ### JBossNS properties
                        java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
                        java.naming.provider.url=jnp://localhost:1099
                        java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
                        


                        If you place your server in another IP, you might have to change this.

                        • 9. Re:  JBoss Messaging clustering
                          clebert.suconic

                          Another possible thing is your network not having UDP routes between these two servers. Take a look at logs if each server can find each other.

                          I believe in an older version of JBM, the default JGroups configuration provided on JBM only set JGroups on localhost, but that should be fixed now. But anyway.. you should double check that also.