Atomikos Forum

Looking for configuration example: Tomcat + ActiveMQ

Hi,

I'm trying to get Atomikos to work with Tomcat and ActiveMQ, but without success.

Configuration:
- Atomikos Transactions Essentials 3.5.9
- SpringSource tc Server 6.0.20.C (based on Tomcat 6.0.20)
- Apache ActiveMQ 5.3.0
- JDK 1.6.0_17

I'd like to define a global JMS resource in Tomcat which all applications can access. I added a new Resource in Tomcat's conf/server.xml:

<Resource name="jms/activemq" auth="Container"
    type="org.apache.activemq.ActiveMQXAConnectionFactory"
    factory="com.atomikos.tomcat.BeanFactory"
    uniqueResourceName="jms/activemq"
    maxPoolSize="10"
    minPoolSize="1"
xaConnectionFactoryClassName="org.apache.activemq.ActiveMQXAConnectionFactory"
xaProperties.brokerURL="tcp://127.0.0.1:61616?jms.prefetchPolicy.all=0"
/>

But when I start Tomcat, I get the following exception:

javax.naming.NamingException: Class is not a AtomikosDataSourceBean: org.apache.activemq.
ActiveMQXAConnectionFactory


Does anybody have an example configuration how I can configure a XA pool of JMS connections? Unfortunately, Atomikos's documentation is not very good regarding Tomcat configuration.

Thanks in advance for your help!
Stephan
Stephan Vollmer Send private email
Monday, November 16, 2009
 
 
Hi,

The tomcat integration on our documentation pages is targeting JDBC mostly. It would need to be extended for JMS, I am afraid...

Although our resources (JDBC and JMS connectors) are fully JNDI aware, Tomcat JNDI setup has always been a bit awkward over the different releases (at least that is my personal impression). That is why extra wiring code is needed :-(

Best
Guy
Guy Pardon Send private email
Monday, November 16, 2009
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics