6 Replies Latest reply on Feb 12, 2004 11:32 PM by amjboss

    Configuring Weblogic as JMS Provider

    wgunadi Newbie

      I have an MDB in JBoss that I'd like to use to get the messages from a JMS Queue hosted in Weblogic 8.1
      How do I tell JBoss that?

      I saw a long message thread about this:
      http://www.mail-archive.com/jboss-user@lists.sourceforge.net/msg31382.html//www.mail-archive.com/jboss-user@lists.sourceforge.net/msg31382.html

      but I cannot find the specific solution for Weblogic.

      This problem can't be new or never been requested before.

      And needless to say, solving this problem will tip the scale for us who are trying to introduce JBoss to a Weblogic development house.

      Thanks,
      Will Gunadi

        • 1. Re: Configuring Weblogic as JMS Provider
          Adrian Brock Master

          No it is not a new problem,
          but I can't see anybody in the archive contributing the solution.

          I assume if you solved it, you haven't contributed it back either.

          The solution is to provide your own jms provider to replace
          the jbossmq one in jms-ds.xml

          Regards,
          Adrian

          • 2. Re: Configuring Weblogic as JMS Provider
            wgunadi Newbie

            >The solution is to provide your own jms provider to replace
            >the jbossmq one in jms-ds.xml

            Here's the problem:
            Even if I knew what to substitute these settings with, which I don't,


            DefaultJMSProvider

            org.jboss.jms.jndi.JBossMQProvider

            java:/XAConnectionFactory
            java:/XAConnectionFactory



            The real question is how can you have weblogic.jar that contains the necessary class to co-exist inside the jboss classpath.

            I tried to do this and jboss (understandably) loads the wrong classes out of weblogic.jar

            • 3. Re: Configuring Weblogic as JMS Provider
              Elias Ross Master


              You can probably extract the exact classfiles you need out of weblogic.jar which are message related. JBoss ships with a bunch of client .jar files which have the components taken out.

              • 4. Re: Configuring Weblogic as JMS Provider
                rchandia Newbie

                Bea says that you should use wlclient.jar and wljmsclient.jar instead of weblogic.jar.

                Anyway, the problem is that wlclient.jar (and I presume weblogic.jar too) contains a jndi.propertoes file inside.

                Of course such a thing completely breaks JNDI.

                Just remove the file from inside the jar and you will get happy coexistence. Now, about making the JMS provider, I have not been able to figure it out either.

                I trier to configure a ExternalContext mbean with no success at all. I keep getting javax.naming.NameNotFoundException but the stack trace does not contain the weblogic classes at all, so I presume my EtenalContext configuration is broken.

                • 5. Re: Configuring Weblogic as JMS Provider
                  rchandia Newbie

                  I found the problem with my ExternalContext. I was using the wrong attribute to configure the properties file. The old docs said to configure it using "Properties" but nowadays "PropertiesURL" should be used.

                  • 6. Re: Configuring Weblogic as JMS Provider
                    amjboss Newbie

                    Hi rchandia,

                    Would like to know if you could get this working.

                    After going thru the posts, I found 2 approaches to configure Weblogic JMS from Jboss:
                    1. Configuring MBean as a RemoteJBossMQProvider
                    2. Configuring MBean as an External Service

                    Though it seems I am close to getting it work, but yet not successful in making my MDB listen to Weblogic Topic.

                    So, It would be great if you could please outline the steps you followed.

                    Thanks
                    am