camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sashika <sashik...@gmail.com>
Subject Re: WMQ Reply-to queue
Date Mon, 05 Oct 2015 03:16:51 GMT
Hi Creg,

setting exchange.getIn().setHeader("JMS_IBM_Report_COA",
MQC.MQRO_COA_WITH_FULL_DATA); worked partially as the required header I
guess has been applied. I browsed the message using queue browser and now
it says "Confirm-on-arrival with full data". That means setting the value
in exchange header worked but something from wmq is inhibiting the reply
being generated. Seems to be a problem in WMQ. Thanks for the suggestion
anyway.



On Fri, Oct 2, 2015 at 9:09 PM, Greg Autric <gautric@redhat.com> wrote:

> Hi
>
> Have you ever try header message ?
> you can include some information mapped from camel internal header to
> component protocol header
>
> more information with :
>
> http://camel.apache.org/how-to-avoid-sending-some-or-all-message-headers.html
> http://camel.apache.org/jms.html#JMS-Messageformatwhenreceiving
>
> But
> exchange.getIn().setHeader("JMS_IBM_Report_COA",
> MQC.MQRO_COA_WITH_FULL_DATA);
> should work w/o pb
>
> best regards,
>
> Greg AUTRIC
> JBoss Middleware Consultant
>
> email   : gautric __at__ redhat __dot__ com
> twitter : @gautric_io
>
> Red Hat Global Services
> Red Hat France SARL                sit: http://www.redhat.fr
> Le Linea, 1 rue du General Leclerc, 92047 Paris La Défense Cedex
> Sent from webmail
>
> ----- Mail original -----
> De: "Sashika" <sashikaxp@gmail.com>
> À: users@camel.apache.org
> Envoyé: Vendredi 2 Octobre 2015 06:25:51
> Objet: WMQ Reply-to queue
>
> I'm connecting to a Websphere MQ endpoint and I have successfully
> configured the
> camel Jms component to connect to the queue manager and deliver messages
> to the
> intended queue.
> The route in question is a request-reply scenario and I want the wmq to
> reply to
> a queue that I specify. This is configured in the Jms component as
> replyToType=Exclusive&replyTo=MY.QUEUE
> All works fine except the reply does not reach camel and the route fails
> with a
> timeout after waiting for a reply. After bit of research I found out that
> we
> need to instruct wmq to generate the report and send to the reply queue.
> For
> this we have to set something like below in the outgoing Jms message but
> not
> sure how to set it in Camel
> message.setIntProperty(WMQConstants.JMS_IBM_REPORT_COA,
> MQC.MQRO_COA_WITH_FULL_DATA)
> Can anyone suggest me how to achieve this in camel level?
> Thanks in advance.
>

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