4 Replies Latest reply on Dec 18, 2003 3:45 AM by gilb

    MDB problem with JBOSS and Websphere MQ

    rg

      Hello,

      I have been able to establish connectivity between JBOSS 3.2.1 and Websphere MQ 5.3 using the ways described in the forum.

      The problem that I am facing is as follows:

      I send a message from a client to a queue on which an MDB is listening for messages. While the JBOSS server is up and running, the MDB's do not receive any messages if sent by the client. But if I restart the JBOSS server, they receive the old sent messages, but if I again send new messages they are not received by the MDB.

      Appreciate any help.

      Thanks,
      RG.

        • 1. Re: MDB problem with JBOSS and Websphere MQ

          Can you try it with 3.2.2
          There is a fix for stalling mdbs.

          If that doesn't fix it enable TRACE for
          org.jboss.jms
          org.jboss.ejb.plugins.jms

          So I can see what is going on.

          Regards,
          Adrian

          • 2. Re: MDB problem with JBOSS and Websphere MQ
            rg

            Adrian,

            I installed JBOSS 3.2.2 as per your advice. Unfortunately, I still have the same problem.

            After that, I enabled the TRACE for org.jboss.jms
            org.jboss.ejb.plugins.jms.

            I am attaching two log files:
            server_first.log
            server.log

            The server_first log is the one when there were no pending messages in the queue, I sent two messages but nothing happened.

            The server.log is the one when I restarted the JBOSS server, the previous two messages were delivered to the MDB (QueueTextMessageBean), indicated by "This is message .." when the JBOSS server came up. I again sent two messages but nothing happened.

            Thanks,
            RG.

            • 3. Re: MDB problem with JBOSS and Websphere MQ

              Actually the bug fixed in 3.2.2 was for jbossmq :-)

              I don't see any difference between the two,
              there are no errors.

              There are 15 sessions waiting for messages but MQSeries
              isn't delivering any.
              I do see two messages processed during startup,
              just after it enabled the connection.

              First thing I would check is whether there is a deadlock.
              ctrl-break on windows ctrl-\ on unix to take a threaddump.

              Failing that, you'll have to find some way to debug
              MQSeries, to discover why it isn't delivering messages.

              Regards,
              Adrian

              • 4. Re: MDB problem with JBOSS and Websphere MQ
                gilb

                I had a problem very similar a few years ago and it turned out to be as simple as adding a \ to the end of one path (forget which one now) in the MQ configuration file. Without it, the system couldn't figure out where to put things, but it never complained either.
                Might be worth a try...