1 Reply Latest reply on Jan 25, 2013 4:37 PM by Justin Bertram

    JMS Bridge without JNDI

    matt1929x Newbie



      I looked at the JMS Bridge example, and it specifies JNDI connectionfactories.  Is there a way to configure HornetQ so that it utilizes a factory configured with a fixed address instead of a JNDI lookup?


      <!-- The JMS Bridge -->

         <bean name="JMSBridge" class="org.hornetq.jms.bridge.impl.JMSBridgeImpl">


                     <!-- Source ConnectionFactory Factory -->


                         <inject bean="SourceCFF"/>


                     <!-- Target ConnectionFactory Factory -->


                         <inject bean="TargetCFF"/>



         <!-- SourceCFF describes the ConnectionFactory used to connect to the source destination -->

             <bean name="SourceCFF" class="org.hornetq.jms.bridge.impl.JNDIConnectionFactoryFactory">



                         <inject bean="SourceJNDI" />









        • 1. Re: JMS Bridge without JNDI
          Justin Bertram Master

          I'm not sure what you're asking here.  What exactly do you want to use instead of a JNDI lookup?


          In any event it's worth noting that the JMS bridge is just that - a JMS bridge.  It is completely unaware of HornetQ implementation details.  It is written to interact with JMS providers which follow the connection factory and destination discovery conventions established in the JMS 1.1 specification (i.e. JNDI).