Hi

A good idea is to build a simple test without Camel to see where the
issue could be.

the camel-jms component uses Spring JMS, so you can google for many
examples how to use Spring JMS in JBoss with TX.

And what does the userTransactionName do for you?



On Tue, Feb 22, 2011 at 10:19 AM, Bill <[email protected]> wrote:
>
> 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.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to