Spring exposes the jmsListener part like below
<jms:listener-container connection-factory="myConnectionFactory"
task-executor="myTaskExecutor"
destination-resolver="myDestinationResolver"
transaction-manager="myTransactionManager"
concurrency="10">
<jms:listener destination="${jms.queue.Inbound}" ref="beanMDP"/>
</jms:listener-container>
So how to call this through Camel as a different service in camel routes.
My aim is to decouple the listener part service which can be used in future
to use anywhere in camel path.
I tried to invoke spring listener for inbound JMS message in camel route
below and removed the <jms:listener destination="${jms.queue.Inbound}"
ref="beanMDP"/>
line from <jms:listener> but not successful.
<camel:route id = "jmsListner">
<camel:from uri = "jms.queue.Inbound"/>
<!--- do here some processing -- >
</camel:route>
<jms:listener-container connection-factory="myConnectionFactory"
task-executor="myTaskExecutor"
destination-resolver="myDestinationResolver"
transaction-manager="myTransactionManager"
concurrency="10">
</jms:listener-container>
Any pointers will really help. Thanks in advance guys for help.
--
View this message in context:
http://camel.465427.n5.nabble.com/Invoking-existing-spring-jms-listener-through-camel-routes-tp5763179.html
Sent from the Camel - Users mailing list archive at Nabble.com.