3 Replies Latest reply on Nov 2, 2011 5:45 AM by Andy Taylor

    Exposing core queues via JNDI?

    Jukka Dahlbom Newbie

      For purposes of using a core bridge, I have defined a queue in hornet-configuration.xml, and set it as a source for a core bridge (as in the bridge example):

         <queues>

            <queue name="jms.queue.notificationQueue">

               <address>/jms/notificationRequestQueue</address>

               <durable>true</durable>

            </queue>

        </queues>

       

         <bridges>

           <bridge name="my-bridge">

             <queue-name>jms.queue.notificationQueue</queue-name>

             <forwarding-address>jms.queue.notificationQueue</forwarding-address>

             <reconnect-attempts>-1</reconnect-attempts>

             <static-connectors>

                 <connector-ref>netty-remote</connector-ref>

             </static-connectors>

           </bridge>

         </bridges>

       

      Now, I need to expose that (core) queue through JNDI  so that my application can use it.

       

      So far I have been able to trivially expose any queues to JNDI by defining them in the hornetq-jms.xml,

      but this one needs to be defined before the bridge, so that option is not available.

       

      How do I expose a Hornetq core queue to JNDI (as JMS queue)?