iocanel wrote:
> 
> 
> alodde wrote:
>> 
>> I wasn't sure if I am using xa-transaction because I am not specifying a
>> xa-connection-factory for the jms service unit. If I define a
>> ActiveMQXAConnectionFactor instead of a ActiveMQConnectionFactor I will
>> run into the following exception:
>>         javax.jms.TransactionInProgressException: Cannot rollback()
>> inside an XASession
>> 
> 
> Have you tried using xa-pool as described in 
> http://servicemix.apache.org/servicemix-jms-new-endpoints.html ServiceMix
> Jms new endpoint documentation ?
> 


Hi, 

Previous I always have tried to use
org.apache.activemq.pool.XaPooledConnectionFactory, which results in the
same exception as mentioned before.

I have just tried to use org.jencks.pool.PooledSpringXAConnectionFactory,
which does not result in an Exception, therefore the arriving jms message
are not processed (queued message are not forwarded to the next component).
Maybe my configuration is wrong and cause problems with the
transactionmanager.
here is my configuration of the xa-factory. I also tried to set a
transactionManager property without any effect:

<bean id="xaConnectionFactory"
class="org.jencks.pool.PooledSpringXAConnectionFactory">
        <property name="connectionFactory">
        <bean class="org.apache.activemq.ActiveMQXAConnectionFactory">
                        <property name="brokerURL" 
value="tcp://localhost:61616" />
        </bean>
        </property>
</bean>

The configuration show in the servicemix example does not work 

<beans xmlns:amqpool="http://jencks.org/amqpool/2.0";>
  <amqpool:xa-pool id="connectionFactory" 
                   url="tcp://localhost:61616"
                   transactionManager="#transactionManager" />
</beans>

I get the following exception:

 Unrecognized xbean namespace mapping: http://jencks.org/amqpool/2.0
        at
org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parseBeanFromExtensionElement(XBeanNamespaceHandler.java:277)

-- 
View this message in context: 
http://old.nabble.com/transaction-servicemix-3.4-tp28532633p28557700.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to