camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <>
Subject [jira] Commented: (CAMEL-2095) Support Issue: Routing a TextMessage from a <camel:proxy> to a JMS queue
Date Thu, 22 Oct 2009 13:15:52 GMT


Claus Ibsen commented on CAMEL-2095:

Remember that if you want to route the proxy to a JMS queue and want the "value you passed
in the first method" to be sent as text message on the jms queue then you have to convert
the payload to text or force the jms producer to use text type.

before you send it to the JMS queue.

Or configure the JMS endpoint with ?jmsMessageType=Text

Otherwise you send an object BeanInvocation to the JMS queue and then if you have Camel on
the other side it can read this BeanInvocation and *actually* invoke a bean on this side.
So what it allows is to create a proxy for the client and send it over JMS to the server and
invoke the real bean. And return the reply back to the client :)

> Support Issue: Routing a TextMessage from a <camel:proxy> to a JMS queue
> ------------------------------------------------------------------------
>                 Key: CAMEL-2095
>                 URL:
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.0.0
>         Environment: jdk 1.5, spring 2.5.6
>            Reporter: Laurent Bovet
>            Assignee: Claus Ibsen
>             Fix For: 2.1.0
>         Attachments: ProxyToStringTest-context.xml,,
> I did not find any example or documentation for using the <camel:proxy> with a
simple send(String textMessage) method and a route sending the textMessage String as body
to a JMS queue (for example).
> The thing is that <camel:proxy> creates a messages with body of type BeanInvocation.
I would expect that Camel provides some builtin transformer/converter to change the body to
the String argument, so that the message on the queue is of type TextMessage.
> Did I miss something? 

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message