5 Replies Latest reply on Feb 22, 2007 8:42 AM by fancoli

    jboss 1.2.0.CR1 MDB Cluster

    fancoli

      I have installed successfully jboss 1.2.0.CR1 on a cluster partition; when I use MDB all works well except that all message in a queue are processed by the same node... if I look inside the table I have CHANNEL_COUNT = 1...
      anywhone got this problem

        • 1. Re: jboss 1.2.0.CR1 MDB Cluster
          timfox

          I'm not sure I understand your problem.

          Can you please explain it in more detail and explain your cluster topology in more detail?

          • 2. Re: jboss 1.2.0.CR1 MDB Cluster
            fancoli

            Yes of course,
            I have two jboss instance on two physical machines; I have removed JBossMQ and then deployed JBossMessaging inside deploy folder of both server; here there is a queue definition:

             <mbean code="org.jboss.jms.server.destination.QueueService"
             name="jboss.messaging.destination:service=Queue,name=BatchProcess_${jboss.partition.name:DefaultPartition}" xmbean-dd="xmdesc/Queue-xmbean.xml">
             <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
             <depends>jboss.messaging:service=PostOffice</depends>
             <attribute name="Clustered">true</attribute>
             </mbean>
            

            I have a message driven bean (not singleton) and I am expecting that the messaging are processed by both server, but only one server works.
            The problem is only on messaging EJB (session) are load balanced...

            Thanks,
            max.

            • 3. Re: jboss 1.2.0.CR1 MDB Cluster
              timfox

              Probably your best place to start is the distributed queue example in the distribution.

              Is this working for you?

              • 4. Re: jboss 1.2.0.CR1 MDB Cluster
                timfox

                For the 1.2 GA release I will be putting together some documentation on how to configure clustering for several classic deployment scenarios and usage patterns.

                E.g.

                Bank of homogenous MDBs and few producers.

                Bank of homogenous MDBs and many well distributed producers.

                Consumers that consume at different rates

                etc

                There are several ways things to be configured to suit different set-ups.

                • 5. Re: jboss 1.2.0.CR1 MDB Cluster
                  fancoli

                  Thanks a lot Tim,

                  I am waiting for documentation.

                  Max