1 2 Previous Next 16 Replies Latest reply on Sep 23, 2010 12:53 PM by mattwright450 Go to original post
      • 15. Re: JCA configuration unable to locate queue
        timfox

        I think the problem comes because .rar is a file extension also used for a proprietary compressed format http://en.wikipedia.org/wiki/RAR as well as mandated in JEE for the file extension of a resource archive, which is not in the RAR format.

         

        If you have associated .rar with the proprietary format in Windows (say) then you might have problems when you double click on it.

        • 16. Re: JCA configuration unable to locate queue
          mattwright450

          Right so I have finally figured out where I was going wrong, the mdb destination activation configuration property must reference the queue name not the entry name listed in the hornetq-jms.xml as suggested in the jca-remote example, see below:

           

          @MessageDriven(name = "MDB_Queue",
                         activationConfig =
                               {
                                  @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),

                                   //not queue/mdbQueue as in the example just mdbQueue
                                  @ActivationConfigProperty(propertyName = "destination", propertyValue = "mdbQueue"),
                                  @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge")
                               })
          @ResourceAdapter("hornetq-ra.rar")
          public class MDBQueue implements MessageListener
          {

             public void onMessage(Message message)
             {}
          }

           

           

          From the hornetq-jms.xml:

           

          <queue name="mdbQueue">   <-- this name
                <entry name="/queue/mdbQueue"/> <-- not this name
          </queue>

           

          Devs for the sake of peoples sanity please correct the example and add some more documentation to the remote jca section.

           

           

          Thanks,

           

          Matt

          1 2 Previous Next