You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by bhaveshbp <bh...@gmail.com> on 2013/06/17 23:28:23 UTC

Syntax for web service route

We are using Servicemix on one of our projects, and we have created a
servicemix feature that basically exposes a JAX-RS webservice that writes
the contents of the POST request to a JMS topic.  I want to convert this to
a straight camel route, is it possible to do so?  We are using the Camel
Spring DSL to define our routes in XML.  I looked for example routes that
routed a web service to a JMS topic and couldnt find any.



--
View this message in context: http://camel.465427.n5.nabble.com/Syntax-for-web-service-route-tp5734267.html
Sent from the Camel Development mailing list archive at Nabble.com.

Re: Syntax for web service route

Posted by Christian Müller <ch...@gmail.com>.
Did you checked our WIKI pages [1], [2], [3]?
Something like

<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
  <route>
     <from uri="cxfrs://bean://rsServer"/>
     <to uri="jms:topic:foo"/>
  </route>
</camelContext>

Are you sure you want to send the message to a topic and not a queue?
Otherwise you should know Camel doesn't support to aggregate multiple
responses from the topics. Or do you want to use the inOnly message
exchange pattern?

[1] http://camel.apache.org/jms.html
[2] http://camel.apache.org/activemq.html
[3] http://camel.apache.org/cxfrs.html

Best,

Christian Müller
-----------------

Software Integration Specialist

Apache Camel committer: https://camel.apache.org/team
V.P. Apache Camel: https://www.apache.org/foundation/
Apache Member: https://www.apache.org/foundation/members.html

https://www.linkedin.com/pub/christian-mueller/11/551/642


On Mon, Jun 17, 2013 at 11:28 PM, bhaveshbp <bh...@gmail.com> wrote:

> We are using Servicemix on one of our projects, and we have created a
> servicemix feature that basically exposes a JAX-RS webservice that writes
> the contents of the POST request to a JMS topic.  I want to convert this to
> a straight camel route, is it possible to do so?  We are using the Camel
> Spring DSL to define our routes in XML.  I looked for example routes that
> routed a web service to a JMS topic and couldnt find any.
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Syntax-for-web-service-route-tp5734267.html
> Sent from the Camel Development mailing list archive at Nabble.com.
>