You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by dbonnin <di...@gmail.com> on 2015/05/30 06:45:02 UTC

REST Session Facade for a JMS Queue in Camel

Hi, I need to create a REST session facade for a JMS queue, the client will
send a POST message containing a value for the JMSCorrelationID and the data
to put into the queue; in another process, the data will be retrieved with
that ID; through the REST session facade.

Can I achieve this with Camel?, I can't find an example of an route that get
messages from a queue on demand using a JMSCorrelationID, all the routes
that I have seen so far are listening on a queue or are putting messages
into it.

The client application can't interact with a JMS queue, so accesing directly
to the queue it's not an option.

I have an idea for the first step using the "setHeader" tag, but don't know
how to implement the second step.

Thanks in advanced.



--
View this message in context: http://camel.465427.n5.nabble.com/REST-Session-Facade-for-a-JMS-Queue-in-Camel-tp5767671.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: REST Session Facade for a JMS Queue in Camel

Posted by yogu13 <yo...@gmail.com>.
if the jms provider is activemq then if i am not mistaken the JMS provider
itself provides REST connectivity out of the box. if container agnostic
implementation is required then camel could help you with that by using
REST[1] and JMS[2]

[1] http://camel.apache.org/rest-dsl.html
[2] http://camel.apache.org/jms.html

Regards,
-Yogesh




--
View this message in context: http://camel.465427.n5.nabble.com/REST-Session-Facade-for-a-JMS-Queue-in-Camel-tp5767671p5767729.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: REST Session Facade for a JMS Queue in Camel

Posted by Ryan Moquin <fr...@gmail.com>.
If you look at the active documentation, you'll find that there is a REST
adapter for it.  That might help if you are determined to use JMS for
this.  I haven't implemented the activemq  rest adapter with Camel but I'm
sure there is a way to do it.

Ryan

On Sat, May 30, 2015, 2:18 AM dbonnin <di...@gmail.com> wrote:

> Hi, I need to create a REST session facade for a JMS queue, the client will
> send a POST message containing a value for the JMSCorrelationID and the
> data
> to put into the queue; in another process, the data will be retrieved with
> that ID; through the REST session facade.
>
> Can I achieve this with Camel?, I can't find an example of an route that
> get
> messages from a queue on demand using a JMSCorrelationID, all the routes
> that I have seen so far are listening on a queue or are putting messages
> into it.
>
> The client application can't interact with a JMS queue, so accesing
> directly
> to the queue it's not an option.
>
> I have an idea for the first step using the "setHeader" tag, but don't know
> how to implement the second step.
>
> Thanks in advanced.
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/REST-Session-Facade-for-a-JMS-Queue-in-Camel-tp5767671.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>