You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by sowmya <so...@gmail.com> on 2011/06/20 08:10:22 UTC

Request response with XA on websphere+webspheremq

Hi,

I am trying to achieve JMS request response scenario in XA with websphere
and websphere mq.
I am not using routes. I am using JmsProducer..process(ExchangePattern
exchange) with exchangePattern set to InOut. Since JMS will not send any
messages until a commit is performed, the server side won't receive anything
at all until the transaction commits, a transaction commit has to happen
after sending request.

This is the configuration i have done in camel-context.xml. But no
transaction commit is not happening for the message to go till consumer. 

	<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
		<endpoint id="requestQueue1"
uri="webspheremq:queue:ReqQueue?exchangePattern=InOut"/> 
 	</camelContext>
     
	<jee:jndi-lookup id="connectionFactory" jndi-name="QCF">
    	<jee:environment>
      	
java.naming.factory.initial=com.ibm.websphere.naming.WsnInitialContextFactory
      		java.naming.provider.url=iiop://localhost:2809/
    	</jee:environment>
  	</jee:jndi-lookup>
			
    <bean id="webspheremq"
class="org.apache.camel.component.jms.JmsComponent">
		<property name="configuration">
			<bean class="org.apache.camel.component.jms.JmsConfiguration">
				<property name="connectionFactory" ref="connectionFactory" />
				<property name="transacted" value="true" />
				<property name="concurrentConsumers" value="1" />
				<property name="transactedInOut" value="false" />
				<property name="cacheLevelName" value="CACHE_NONE"/>
			</bean>
		</property>
     </bean>

Should I do any more configurations to achieve request response?

--
View this message in context: http://camel.465427.n5.nabble.com/Request-response-with-XA-on-websphere-webspheremq-tp4505281p4505281.html
Sent from the Camel - Users mailing list archive at Nabble.com.