camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill <chenfeng.f...@gmail.com>
Subject JMS Transaction in jboss camel is not work
Date Tue, 22 Feb 2011 09:19:17 GMT

Hi,all
I integerated IBM MQ with camel in jboss. (using jndi)

	<bean id="jmsConnectionFactory"
class="org.springframework.jndi.JndiObjectFactoryBean">
		<property name="jndiName">
			<value>jms/QueueConnectionFactory</value>
		</property>
	</bean>

	<bean id="jms" class="org.apache.camel.component.jms.JmsComponent">
		<property name="connectionFactory" ref="jmsConnectionFactory" />
		<property name="transacted" value="true" />
		<property name="transactionManager" ref="transactionManager" />
	</bean>

	<bean id="transactionManager"
		class="org.springframework.transaction.jta.JtaTransactionManager">
		<property name="transactionManagerName">
			<value>java:/TransactionManager</value>
		</property>
		<property name="userTransactionName" value="UserTransaction"></property>
	</bean>


------------and my route ------------------
		<camel:route>
			<camel:from uri="jms:queue1" />
			<camel:transacted/>
			<camel:to uri="xslt://toSoap.xslt" />
			<camel:to uri="cxf:bean:serverEndpoint?dataFormat=MESSAGE" />
		</camel:route>

but it's not usefull.
-- 
View this message in context: http://camel.465427.n5.nabble.com/JMS-Transaction-in-jboss-camel-is-not-work-tp3395258p3395258.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message