camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From noone100 <>
Subject Howto use amq: and transacted in Fuse and Unit Test
Date Sun, 07 Jun 2015 20:17:26 GMT
Given following blueprint and camel context:
	<reference id="txManagerRef" 
		interface="org.springframework.transaction.PlatformTransactionManager" />

		<property name="transactionManager" ref="txManagerRef" />
		<route id="jmsConsumer">
			<from uri="amq://myqueue" />
			<transacted ref="PROPAGATION_REQUIRED" />
			<to uri="mock:debug" />

amq: and PlatformTransactionManager are available in Fuse, the route works
as expected.

How can I set up an amq: component and a transaction manager in a Junit to
test the same route?

I tried following without success:
* add transaction manager as a service and an amq bean in an additional
test-blueprint.xml (maybe deadlock due to service and reference in same
* Tried to override addServicesOnStartup(...) (adding amq as a service does
not work)

Any help would be appreciated.

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message