7 Replies Latest reply on Feb 26, 2002 4:49 PM by camtabor

    SwiftMQ with Jboss3.0.0beta

    camtabor

      Hello,
      I feel I am very close to getting MDB working with SwiftMQ, but I get the following error on deployment. If anyone has gotten this working, I would really appreciate your configuration.
      Thanks.
      -Cameron

      javax.jms.JMSException: com.swiftmq.tools.requestreply.TransportException: No requestService for request defined: [CreateConsumerRequest [Request, dispatchId=16
      requestNumber=0 timeout=-1 replyRequired=true reply=null] queue=REALTIME@router1 messageSelector=null]
      at com.swiftmq.jms.ExceptionConverter.convert(ExceptionConverter.java:30)
      at com.swiftmq.jms.QueueConnectionConsumerImpl.createConsumer(QueueConne
      ctionConsumerImpl.java:39)
      at com.swiftmq.jms.QueueConnectionImpl.createConnectionConsumer(QueueConnectionImpl.java:82)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoker.java:584)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.onException(JMSContainerInvoker.java:1039)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker$1.run(JMSContainerInvoker.java:420)

        • 1. Re: SwiftMQ with Jboss3.0.0beta
          amueller

          > Hello,
          > I feel I am very close to getting MDB working with
          > h SwiftMQ, but I get the following error on
          > deployment. If anyone has gotten this working, I
          > would really appreciate your configuration.
          > Thanks.
          > -Cameron
          >
          > javax.jms.JMSException:
          > com.swiftmq.tools.requestreply.TransportException: No
          > requestService for request defined:
          > [CreateConsumerRequest [Request, dispatchId=16
          > requestNumber=0 timeout=-1 replyRequired=true
          > reply=null] queue=REALTIME@router1
          > messageSelector=null]

          You use the standard JMS Swiftlet. You must use the JMS XA/ASF Swiftlet.

          • 2. Re: SwiftMQ with Jboss3.0.0beta
            camtabor

            Thank you, I'm going to try and use the XA/ASF swiftlet instead, except I have no idea how. Here is my current configuration. Thanks for pointing me in the right direction.


            SwiftMQAdapter
            smqp://localhost:4001/timeout=10000
            com.swiftmq.appserver.jboss.SwiftMQAdapter
            QueueConnectionFactory
            TopicConnectionFactory

            • 3. Re: SwiftMQ with Jboss3.0.0beta
              amueller

              The use of the JMS XA/ASF Swiftlet is simple. Download it and unpack it. You'll find a "deploy" directory there with one jar file and one config.xml. Copy both into "kernel/sys$jms" directory of your router and start the router. On startup you'll see that the JMS XA/ASF Swiftlet is used now instead of the standard JMS Swiftlet.

              • 4. Re: SwiftMQ with Jboss3.0.0beta
                camtabor

                I figured that out, thanks so much again. Now there is one last issue.

                When I try to use the explorer I get:

                unable to connect exception= javax.jms.JMSException: java.lang.NullpointerException

                with this configuration:
                JNDI-Provider-URL smqp://localhost:4001/timeout=10000
                Name Queue Connection Factory: QueueConnectionFactory

                The same when I try to use a basic jms sender. I wonder if the URL should be different with the XA/ASF swiftlet?

                Thanks so much for your help, if you have any advice here I'd appreciate it.
                -Cameron

                • 5. Re: SwiftMQ with Jboss3.0.0beta
                  camtabor

                  Hmm, I put in in kernel and took it out of deploy and it worked. Oh well, thanks so much for your help on this.
                  -Cameron Tabor

                  • 6. Re: SwiftMQ with Jboss3.0.0beta
                    amueller

                    That seems some classpath mismatch or a configuration problem. It works fine here.

                    Please take a clean SwiftMQ 3.0.1 eval, unzip it into a new directory, copy the jar + config.xml from the JMS XA/ASF Swiftlet into the kernel/sys$jms and then use the explorer from that new clean distribution.

                    This is not the right forum to give you SwiftMQ answers, so if you need more help, contact me directly: am@iit.de

                    • 7. Re: SwiftMQ with Jboss3.0.0beta
                      camtabor

                      I'm all set up now, thanks.