9 Replies Latest reply on Aug 2, 2008 5:03 AM by timfox

    Configuring a non-JBoss JMS Provider (Weblogic)

    jferraro1

      I am trying to configure access to a remote JMS Provider - that being Weblogic. It is a weblogic topic that I am trying to gain access too. I am using an EJB3 MDB in JBoss as a subscriber to the remote Weblogic topic. I think my problem is around the QueueFactoryRef: definition as I am trying to subscribe to a topic and it has no queue definition. I get the following error message (below) at JBoss startup. Under the error message are my configuration scripts. Anyone have any ideas ?

      adapter.jms.inflow.JmsActivationSpec@a50a00(ra=org.jboss.resource.adapter.jms.Jm
      sResourceAdapter@1fc7299 destination=foresight/ForeSightJMSTextReportsTopic isTo
      pic=true tx=true durable=false reconnect=10 provider=java:/ForeSightJMSProvider
      user=null maxMessages=1 minSession=1 maxSession=15 keepAlive=60000 useDLQ=true D
      LQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler DLQJndiNam
      e=queue/DLQ DLQUser=null DLQMaxResent=5)
      java.lang.ClassCastException: Object at 'foresight' in context {java.naming.fact
      ory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkg
      s=org.jboss.naming:org.jnp.interfaces:org.jboss.naming:org.jnp.interfaces} is no
      t an instance of [class=javax.jms.QueueConnectionFactory classloader=org.jboss.m
      x.loading.UnifiedClassLoader3@11ff436{ url=null ,addedOrder=2} interfaces={inter
      face=javax.jms.ConnectionFactory classloader=org.jboss.mx.loading.UnifiedClassLo
      ader3@11ff436{ url=null ,addedOrder=2}}] object class is [class=$Proxy13 classlo
      ader=org.jboss.mx.loading.UnifiedClassLoader3@11ff436{ url=null ,addedOrder=2} i
      nterfaces={interface=javax.naming.Context classloader=null}]
      at org.jboss.util.naming.Util.checkObject(Util.java:329)
      at org.jboss.util.naming.Util.lookup(Util.java:216)


      Config Scripts:


      foresight

      java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory
      java.naming.provider.url=t3://foresight-prod.co.ihc.com:7001
      java.naming.security.authentication=none

      javax.naming.InitialContext

        • 1. Re: Configuring a non-JBoss JMS Provider (Weblogic)
          jferraro1

          Config Scripts:

          jboss-service.xml
          -------------------------

          foresight

          java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory
          java.naming.provider.url=t3://foresight-prod.co.ihc.com:7001
          java.naming.security.authentication=none

          javax.naming.InitialContext


          jms-ds.xml
          ----------------

          ForeSightJMSProvider
          org.jboss.jms.jndi.JNDIProviderAdapter
          foresight
          foresight


          <!-- The Foresight JMS connection factory -->
          <no-tx-connection-factory>
          <jndi-name>ForeSightJms</jndi-name>
          <rar-name>jms-ra.rar</rar-name>
          <connection-definition>org.jboss.resource.adapter.jms.JmsConnectionFactory</connection-definition>
          <config-property name="SessionDefaultType" type="java.lang.String">javax.jms.Topic</config-property>
          <config-property name="JmsProviderAdapterJNDI" type="java.lang.String">java:/ForeSightJMSProvider</config-property>
          <max-pool-size>20</max-pool-size>
          </no-tx-connection-factory>

          • 2. Re: Configuring a non-JBoss JMS Provider (Weblogic)
            jferraro1

            Try it again...

            Config scripts

            jboss-service.xml
            ------------------------

            foresight

            java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory
            java.naming.provider.url=t3://foresight-prod.co.ihc.com:7001
            java.naming.security.authentication=none

            javax.naming.InitialContext





            jms-ds.xml
            --------------

            ForeSightJMSProvider
            org.jboss.jms.jndi.JNDIProviderAdapter
            foresight
            foresight


            <!-- The Foresight JMS connection factory -->
            <no-tx-connection-factory>
            <jndi-name>ForeSightJms</jndi-name>
            <rar-name>jms-ra.rar</rar-name>
            <connection-definition>org.jboss.resource.adapter.jms.JmsConnectionFactory</connection-definition>
            <config-property name="SessionDefaultType" type="java.lang.String">javax.jms.Topic</config-property>
            <config-property name="JmsProviderAdapterJNDI" type="java.lang.String">java:/ForeSightJMSProvider</config-property>
            <max-pool-size>20</max-pool-size>
            </no-tx-connection-factory>

            • 3. Re: Configuring a non-JBoss JMS Provider (Weblogic)
              timfox

              No idea, this is a JBoss Messaging forum, not a "How do I use Weblogic forum" - have you asked the Weblogic guys?

              • 4. Re: Configuring a non-JBoss JMS Provider (Weblogic)
                timfox

                Or you could ask in the JCA users forum, since this seems to be a question of how to configure the JBoss AS JMS JCA adaptor to talk to Weblogic JMS.

                • 5. Re: Configuring a non-JBoss JMS Provider (Weblogic)
                  jferraro1

                  Tim,

                  The question is not a "How do I use Weblogic forum" - it is an interoperability issue with JBoss. In fact the topic is very piss poorly covered in the JBoss Configuration Guide - 7.4.3 Integrating non_JBoss JMS Providers. Maybe you can provide some constructive advice? Are there any knowledgeable JBoss JMS Provder/Configuration forums ?

                  Tim, we are in a world of integration these days, dude - come out of your cave....

                  • 6. Re: Configuring a non-JBoss JMS Provider (Weblogic)
                    ataylor

                     

                    it is an interoperability issue with JBoss


                    Exactly, this is the JBoss Messaging forum. Try using the correct forum and you may get some help.

                    • 7. Re: Configuring a non-JBoss JMS Provider (Weblogic)
                      timfox

                       

                      "jferraro@ihc.com" wrote:
                      Tim,

                      The question is not a "How do I use Weblogic forum" - it is an interoperability issue with JBoss.


                      Fine, but you are in the wrong forum. This team does not deal with interoperability with weblogic. That's why I said try the JCA forum.

                      In the same way, if someone asked a Hibernate or EJB or MDB or Remoting question in this forum I would direct them to the correct forum, since we are not qualified to answer those questions.

                      Does that make sense? Can I go back in my "cave" now, "dude"?

                      • 8. Re: Configuring a non-JBoss JMS Provider (Weblogic)
                        jferraro1

                        Tim,

                        Just 1 more question and I will move on to JCA.... There is a JBoss developer - Dan Christopherson that I found some old threads that talked a little bit about this topic. Would you happen to know what forem/group he might be a part of? I do appreciate your help and I understand that I am in the incorrect forum - its just that this has been a frustrating issue and it has been somewhat difficult to find the correct audience. Again, thanks for you help.


                        • 9. Re: Configuring a non-JBoss JMS Provider (Weblogic)
                          timfox

                          I don't know Dan Christopherson, but the JCA people should be able to help you out.

                          Also, have you looked on the wiki. IIRC there are some resources about how to configure the JBoss JCA adaptor to talk to other messaging systems.