3 Replies Latest reply on Jan 4, 2005 12:47 PM by igilchrest

    Can I use SwiftMQ and JBOSS separately ?

    rubens

      Hello,

      my question is if I can use JBOSS and SwiftMQ without integrate them. I want my bean (session or MDB) to send and receive messages from a SwiftMQ server, this server is already used in another system, and I can´t change it.

      Thaks,
      Rubens

        • 1. Re: Can I use SwiftMQ and JBOSS separately ?

          Does this still work? (I haven't tried it myself)

          You need to change the DefaultJMSProvider to use swift's connection factory
          and change jboss.xml to use swift's destination jndi names.

          Regards,
          Adrian

          • 2. Re: Can I use SwiftMQ and JBOSS separately ?
            nusa
            • 3. Re: Can I use SwiftMQ and JBOSS separately ?
              igilchrest

              I am trying this as well. I can replicate the JNDI fine, but when I try to deploy an MDB with <destination-jndi-name>swiftmq/testqueue</destination-jndi-name>

              I get:

              java.lang.ClassCastException: com.swiftmq.jms.QueueImpl
              at org.jboss.mq.SpyConnectionConsumer.(SpyConnectionConsumer.java:91)
              at org.jboss.mq.SpyConnection.createConnectionConsumer(SpyConnection.java:166)
              at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoker.java:743)
              at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvoker.java:767)
              at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
              at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
              at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)

              Is it possible to use other Queue implementations as destinations within JBoss? It seems from this error that the queue would need to extend SpyDestination.

              Any help would be appreciated.

              Thanks,

              Ian