6 Replies Latest reply on Nov 10, 2004 3:33 AM by sheckler

    Question about JMS/HAJMS

    sheckler

      Hi to all,

      J am using HAJMS and JBoss 3.2.5 to implement a dataChangeListener for the GUI in a clustered environment. So far so good.

      The server are multihomed machines within two parallel networks. On each machine two jboss instances are running, each bound to one lan interface. The cluster bind address is set to one of the two lans for all instances.

      It is possible now, that a client is connected to the cluster, but cannot reach an active cluster node directly (no route to host, even though node is active within the cluster). If HAJMS would be running on this node, the JMS client could not connect and the dataChangeListener would not work.

      Using classic JMS running on each node only the clients connected to one JMS node would be updated, the rest would not.

      So there seems to be no way to implement a dataChangeListener in this special clusterd environment with JMS, that informs all clients connectd to the cluster about data changes (of course the optimistic locking strategy prevents inconsistent changes of data).

      I am not shure I kept everything in mind. Maybe someone has useful hints for me to realize a dataChangeListener in this environemnt with HAJMS. Maybe I should put this message to the clustering forum?

      Thanks for any hint
      Stefan Heckler,
      PSI AG, Germany


        • 1. Re: Question about JMS/HAJMS

          Moderated: Your question is unanswerable.

          Use READ THIS FIRST

          • 2. Re: Question about JMS/HAJMS
            sheckler

            Hello Adrian,

            I read the wiki, I read READ THIS FIRST. What is wrong with the description of my JMS problem?

            Is it bad english or is the problem description not clear enough?
            I tried to describe in detail a problem in a real production environment which has to be solved (by modifying network architecture or by configuring or modifying software).

            A possible hint could be, that for the describred topology (HA)JMS is not
            an adequate techique for client server communication.

            Network topology:
            Not all nodes of a cluster a reachable by the client (no route to host), but the cluster is reachable, because at least one of the cluster nodes is reachable.

            Within the cluster HAJMS is running.

            Question: Is HAJMS and the above topology compatible or would only a real clusterable JMS be a future solution?

            Question: Can HAJMS and local JMS be combined within a cluster?

            Thank You for Yout help






            • 3. Re: Question about JMS/HAJMS

              I couldn't determine what your question actually was, other than something
              related to HAJMS.


              Network topology:
              Not all nodes of a cluster a reachable by the client (no route to host), but the cluster is reachable, because at least one of the cluster nodes is reachable.


              HAJMS is designed for high availability in a homogenous cluster.
              It does not provide network transparency, there is a TODO to
              add this behaviour to JBossMQ:
              http://jboss.org/index.html?module=bb&op=viewtopic&t=46193
              which would also allow the distribution of topic subscriptions across a cluster.

              A number of people have asked for this feature, but nobody seems to
              want it enough to actually implement it.

              • 4. Re: Question about JMS/HAJMS

                It can be trivially implemented for queues with an MDB on a reachable node,
                pulling messages from the cluster and sending them to a "local" jms server
                using java:/JmsXA

                • 5. Re: Question about JMS/HAJMS
                  sheckler

                  This means parallel local JMS server and HAJMS is possible? I try to go this way.

                  Thanks for support.

                  • 6. Re: Question about JMS/HAJMS
                    sheckler

                    Hi again,

                    for giving a feedback:

                    This means parallel local JMS server and HAJMS is possible? I try to go this way


                    This is working fine by now. I have in addition to the HAJMS configuration (from jboss/server/all) the invocation layers as 'local'services as well, some 'local' queues/topics and a second 'local' datasource wich is not using HAJNDI and a correspondig container config for the 'local' MDBs.

                    Stefan