I'm attempting to integrate HornetQ with Resin 3.1. I'm new to JMS and am currently finding the config on Resin side somewhat difficult.
I am trying to get a MDB to listen to a JMS queue. I have HornetQ setup as a standalone server with JNDI enabled. After reading through a lot of Resin doco (http://www.icxo.com/resin-doc/tutorial/index.xtp) I have the following in my resin.conf
<web-app id="/" document-directory="\D:\dev\app\app_admin\web"> <rewrite-dispatch> <redirect regexp='^/$' target='/login'/> </rewrite-dispatch> <connector> <type>org.hornetq.ra.HornetQResourceAdapter</type> <resource-adapter> <init> <connection-factory resin:type="org.hornetq.jms.client.HornetQConnectionFactory"/> <destination resin:type="org.hornetq.jms.client.HornetQQueue"/> </init> </resource-adapter> </connector> </web-app>
When I start Resin, it complains that it can't access HornetQResourceAdapter. I have added the following JARS to the resin classpath:
At this point I'm not sure who to configure resin to access the HornetQResourceAdapter. I have already coded up the MDB with annotations to indicate the queue.
The following is my hornetq-jms.xml
<configuration xmlns="urn:hornetq" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:hornetq /schema/hornetq-jms.xsd"> <connection-factory name="NettyConnectionFactory"> <connectors> <connector-ref connector-name="netty"/> </connectors> <entries> <entry name="ConnectionFactory"/> </entries> </connection-factory> <queue name="AppQueue"> <entry name="/queue/AppQueue"/> </queue> </configuration>
If anyone is able to help me understand what maybe going wrong with the resin config or if you've done this with resin, some help would be great. If I can get this working, I'll post up the details for future resin uses.