Re: Steps to replace a direct call by a JMS proxy?

2013-05-14 Thread Christian Schneider
There is one additional thing you need. You have to call your route in some way. There are two methods: 1. camelContext.createProducerTemplate().sendBody or similar 2. pojo messaging: http://camel.apache.org/pojo-messaging-example.html Depending on your application it may make sense to use

Re: Steps to replace a direct call by a JMS proxy?

2013-05-14 Thread Al Ferguson
Thank you. As a first step, I would like to get it working using a template. When done, Maybe I'll separate the logic in a separate bean. But... How to make throttling with using a producertemplate? Is is possible? Thanks, Al. F -- View this message in context:

Re: Steps to replace a direct call by a JMS proxy?

2013-05-14 Thread Christian Schneider
You just send to direct:endpoint. This will trigger the route Christian Posta described and the throttling should work. You can of course not directly define the throttling in the producerTemplate as you only can define an endpoint uri. For this case we have the direct endpoint that can then

Re: Steps to replace a direct call by a JMS proxy?

2013-05-14 Thread Al Ferguson
Got it, thanks -- View this message in context: http://camel.465427.n5.nabble.com/Steps-to-replace-a-direct-call-by-a-JMS-proxy-tp5732430p5732516.html Sent from the Camel - Users mailing list archive at Nabble.com.

Steps to replace a direct call by a JMS proxy?

2013-05-13 Thread Al Ferguson
Hi, I currently have a Java application that sends directly messages to a queue using a Spring JmsTemplate: I would like to take advantage of the facilities of Camel Throttling but I do not see how to define my route. Could someone help me and tell me what I have to do? Regards, Al. F --

Re: Steps to replace a direct call by a JMS proxy?

2013-05-13 Thread Christian Posta
May want to take a look at some of the intro material: http://camel.apache.org/getting-started.html Essentially, you'll need to define a route builder that a builds a route like: from(direct:endpoint).throttle().to(jms:queueName) http://camel.apache.org/cookbook.html