2 Replies Latest reply on Dec 30, 2010 11:50 AM by clebert.suconic

    JBOSS AS 5.1.0.GA and Hornetq 2.1.2-Final JCA Question.

    groovenarula

      Hello,

       

      I've just completed setting up a new instance of JBOSS AS 5.1.0.GA with HornetQ 2.1.2-Final.

       

      I have a question regarding setting up the JCA resource adapter for Hornetq. The User guide (on Page 126 Section 32.4 - Configuring the JCA Adaptor) states that :

       

      The HornetQ JCA adapter is deployed via the jms-ra.rar archive. The             configuration of the adapter is found in this archive under META-INF/ra.xml.

       

      I'm not sure I understand what it means. Does that mean that when we run the integration process, that the default jms-ra.ra is replaced by a version suitable for HornetQ ? If not, can someone please help me understand what steps are need to build a new jms-ra.rar for HornetQ ?

       

      Sorry if this is a newbie questions, but basically what I would like to do is send a message from a EJB (deployed in the same instance of JBOSS that's hosting a HornetQ queue) and I want to make sure that I use the right resource adapater when opening a connection to HornetQ. The manual states that :

       

      'The Java Connector Architecture (JCA) Adapter is what allows HornetQ to be integrated with JEE components such
      as MDBs and EJBs.'.

       

      I just want to make sure I use the right JCA Adapters (if I need to) when connecting to HornetQ. The example MDB does not use any special adapter to create a new connection factory. It just has one reference to the hornetq-ra.rar for the class the implements the MDB. If need to do the same from an EJB, should I use hornetq-ra.rar as the resource adapater or should I use jms-ra.rar ?

       

      Please clarify.

        • 1. Re: JBOSS AS 5.1.0.GA and Hornetq 2.1.2-Final JCA Question.
          jaikiran

          I haven't checked the HornetQ JBoss AS integration guide for AS5, so I don't exactly know what the requirements of that .rar file are. I'll move this to HornetQ forum since they might be able to answer this.

          • 2. Re: JBOSS AS 5.1.0.GA and Hornetq 2.1.2-Final JCA Question.
            clebert.suconic
            'm not sure I understand what it means. Does that mean that when we run the integration process, that the default jms-ra.ra is replaced by a version suitable for HornetQ ? If not, can someone please help me understand what steps are need to build a new jms-ra.rar for HornetQ ?

             

            Correct.

             

            You could manually install the HornetQ's resource adapter with a different name, but on that case you would need to set the adapter's name on each MDB deployed through XML or some annotation.