camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Müller <christian.muel...@gmail.com>
Subject Re: Request Response with Websphere MQ with JTA
Date Wed, 22 Jun 2011 18:04:07 GMT
Did you allready tried transactedInOut=true?
Am 22.06.2011 08:04 schrieb "Sachin" <sachin2713@gmail.com>:
> 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-Websphere-MQ-with-JTA-tp4513041p4513041.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message