3 Replies Latest reply on Jun 15, 2005 8:04 AM by rohantalip

    Clustering Confusion

    teknokrat

      After reading what I coulkd find on jboss clustering I am still apprehensive about ceratin details involving clusterin message driven beans.

      Our situation is that we have a jboss 4.01 cluster on windows 2003 server. We have a layer of tomcat instances with load balancing that call stateless session beans on jboss cluster. We want to migrate this to an architecture that has a layer of clustered jms queue/topics and a layer of clustered mdbs.

      1. Is this possible or am I mad.
      2. The docs give me the impression that mdb clustering is not implemented in jboss. If so, what do I do? Can I create my own HA-MDB Singleton and deploy in on the mdb cluster?
      3. We are currently considering using Queues to push messages to the mdbs. Would it be better if the mdbs subscribed to topics instead?
      4. Anything else I might have missed.

      Sorry if some of the above sounds dumb, I am quite new to this.

      thanks

        • 1. Re: Clustering Confusion

          Currently, HA-JMS is using HA-Singleton that supports fail over (but no load balancing). You can look up the Wiki for more details.

          -Ben

          • 2. Re: Clustering Confusion
            teknokrat

            Yeah, I've been at looking at it. What I don't understand is where the MDBs come into it. Does it mean the MDBs reside on the same servers as the JMS queue/topic? If so, how is load balancing handled?

            There is an example onthe wiki on " Load-balanced, faul-tolerant MDBs in HAJMS" which I am reading now. Are there any other sources of information on this topic?

            thanks

            • 3. Re: Clustering Confusion

              teknorat, you've probably solved your problem now ...

              "teknokrat" wrote:
              Yeah, I've been at looking at it. What I don't understand is where the MDBs come into it. Does it mean the MDBs reside on the same servers as the JMS queue/topic?

              Not necessarily. You can put the MDBs on same server as the JMS queue/topic, but you can also put them on other servers in the same cluster.

              My question is: how can you configure the MDBs to reconnect automatically when the JMS server fails over to another JBoss instance? See
              http://www.jboss.org:8080/index.html?module=bb&op=viewtopic&t=64439#3881573

              "teknokrat" wrote:

              If so, how is load balancing handled?

              There is an example onthe wiki on " Load-balanced, faul-tolerant MDBs in HAJMS" which I am reading now. Are there any other sources of information on this topic?

              I looked at that http://wiki.jboss.org/wiki/Wiki.jsp?page=LoadBalancedFaultTolerantMDBs too and downloaded the http://wiki.jboss.org/wiki/attach?page=LoadBalancedFaultTolerantMDBs%2Fload-balanced-mdbs-example.zip but it doesn't seem to do too much other than specify the HA-JNDI port (i.e. port 1100 instead of the local JNDI port 1099), which is already done in jboss-4.0.1sp1/server/all/deploy/jms/hajndi-jms-ds.xml

              Or did I miss something?

              Rohan