XaPooledConnectionFactory JNDI Set Up

View: New views
1 Messages — Rating Filter:   Alert me  

XaPooledConnectionFactory JNDI Set Up

by amin1977 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

I am trying to set up XaPooledConnectionFactory as a JNDI resource rather than defining it in Spring.  Hibernate Search uses JNDI to look up jms connection factory.  Normal connection factory works fine but XA doesnt.  The following provides what i'm trying to do:

        <Resource name="jms/xaConnectionFactory" auth="Container" type="org.jencks.amqpool.XaPooledConnectionFactory"
        description="JMS xa Connection Factory" factory="org.apache.activemq.jndi.JNDIReferenceFactory"
        brokerURL="tcp://localhost:5000?trace=true" brokerName="LocalActiveMQBroker"
        transactionManager="UserTransaction"/>

in my context.xml file.  UserTransaction is jndi defined as well. I know I'm doing something wrong but I'm not sure.  Any help would be highly appreciated.

Cheers
Amin