ActiveMQ

From Resin 3.0

Revision as of 02:47, 17 December 2007 by Ferg (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

ActiveMQ can be configured in Resin using ActiveMQ's JCA adapter. The .rar file is in apache-activemq-5.0.0/lib/options/activemq-rar-5.0.0.rar

In the resin.conf, you'll need to add a <resource-deploy> tag to tell Resin where to look for resources:

 <resin xmlns="http://caucho.com/ns/resin">
   <cluster id="">
       <host id="">
          <resource-deploy path="deploy"/>
           ...
        </host>
    </cluster>
 </resin>

Then, in your resin-web.xml, you'll need to configure the connector. It will look like:

 <web-app xmlns="http://caucho.com/ns/resin">
   
    <connector class="org.apache.activemq.ra.ActiveMQResourceAdapter">
        <init>
            <ServerUrl>vm://localhost</ServerUrl>
        </init>
    
         <connection-factory class="javax.jms.QueueConnectionFactory"/>

          <bean class="javax.jms.Queue">
             <init PhysicalName="queue.test"/>
           </bean>
   </connector>
 </web-app>
Personal tools