You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by James Strachan <ja...@gmail.com> on 2009/01/28 18:40:59 UTC
Re: Camel routes to JMS problem: one simple message sent many times
(duplicated)
2009/1/28 Matvey <ma...@inbox.ru>:
>
> My confuguration: I want updatesender bean to send one JMS message to Updates
> queue every time the method sendUM() invokes. In a real life it work a bit
> different...
how about something like this...
http://camel.apache.org/pojo-producing.html
public class Foo {
@EndpointInject(uri="activemq: Updates")
ProducerTemplate producer;
public void sendUM() {
producer.sendBody("<hello>world!</hello>");
}
}
> <camelContext id="camel"
> xmlns="http://activemq.apache.org/camel/schema/spring">
> <package>org.apache.camel.example.spring</package>
>
> <route>
> <from uri="bean:updatesender?methodName=sendUM"/>
> <to uri="activemq:queue:Updates?exchangePattern=InOnly" />
> </route>
this route will poll your bean; am not sure thats what you want
--
James
-------
http://macstrac.blogspot.com/
Open Source Integration
http://fusesource.com/