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

    JMS Bridge without JNDI

    matt1929x Newbie

      Hello:

       

      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">

                 <constructor>

                     <!-- Source ConnectionFactory Factory -->

                     <parameter>

                         <inject bean="SourceCFF"/>

                     </parameter>

                     <!-- Target ConnectionFactory Factory -->

                     <parameter>

                         <inject bean="TargetCFF"/>

                     </parameter>

       

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

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

                 <constructor>

                     <parameter>

                         <inject bean="SourceJNDI" />

                     </parameter>

                     <parameter>/source/ConnectionFactory</parameter>

                 </constructor> 

             </bean>

       

       

      Thanks,

      Matt

        • 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).