2 Replies Latest reply on Apr 17, 2003 4:37 PM by dtauzell

    Support for Multiple JMS Providers

    edcurry

      Hi,
      Im trying to write an application which would connect and interact with multiple JMS providers (as in SonicMQ, JBossMQ, weblogic, etc ). Once ive included all the relevant support files for the providers on my classpath my code will use the classes of the first provider it comes across.

      Now outside of using the fully qualified class names of each of the providers, which will add lots of code overhead and negates the purpose of JMS, is there any other way of getting this to work?

      TIA,
      Ed

        • 1. Re: Support for Multiple JMS Providers

          The javax.jms classes are mainly
          interfaces.

          It should automatically use the relevent
          implementation classes when you lookup the
          ConnectionFactory in jndi.

          Regards,
          Adrian

          • 2. Re: Support for Multiple JMS Providers

            We have startup classes (Startup class for Weblogic, MBean for JBoss) that populates the JNDI with Queue objects. The startup class reads a configuration file to determine if it should be Sonic or MQSeries queue objects.

            The rest of our application just uses the standard JMS interfaces. The provider it ends up using is determined by what the startup class added to JNDI.

            -Dave