camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mta38 <>
Subject JmsExchange xml InOut pattern
Date Fri, 14 Nov 2008 08:42:31 GMT

Hi all,
I have some little problem with use of JmsExchange.

I have the following route:

	<from ref="jmsRequestQueue" />	
	<process ref="myProcessor" />
	<to ref="jmsResponseQueue" />

Where  jmsRequestQueue and jmsResponseQueue are define using jndi template 

<bean id="myJndiTemplate"
		<property name="environment">
				<prop key="java.naming.factory.initial">

<bean id="connectionFactory"
		<property name="jndiTemplate">
			<ref bean="myJndiTemplate" />
		<property name="jndiName">

<bean id="jmsQueue" class="org.apache.camel.component.jms.JmsComponent">
		<property name="connectionFactory" ref="connectionFactory" />
		<property name="acknowledgementModeName" value="AUTO_ACKNOWLEDGE"/>

<endpoint id="jmsRequestQueue" uri="jmsQueue:queue:${queue.RequestQueue}" />

And  queue.RequestQueue is define in a property file.
java.naming.factory.initial =

My questions are:

1 - How to define my JmsExchange (in xml config file) as an "InOut" Exchange
pattern? (When I test this route, I can see that the value of
ExchangePattern is "InOnly"). 

2- Why my JmsReplyTo destination in the exchange object is null?

Any help are welcome,

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

View raw message