Re: select message via camel filter

2019-06-06 Thread Andrea Cosentino
You can find the updated documentation in github

https://github.com/apache/camel/blob/master/components/camel-jms/src/main/docs/jms-component.adoc

Il giorno gio 6 giu 2019 alle ore 09:21 James Carman <
ja...@carmanconsulting.com> ha scritto:

> Try using a JMS selector on the URI:
>
> https://camel.apache.org/jms.html
>
>
> On Thu, Jun 6, 2019 at 1:03 AM Wang Yan  wrote:
>
> > I used below example to select message.
> > although it can send matched message to toqueue
> > but not matched messages are also dequeued
> > What I want to achieve is only matched messages will be
> > selected and sent to toqueue .
> >
> > Any suggestion or hints how to do this with camel filter?
> >
> > from("activemq:queue:inputqueue?transacted=true")
> > .filter(header("foo").isEqualTo("bar"))
> > .to("activemq:queue:toqueue");
> >
>


Re: select message via camel filter

2019-06-06 Thread James Carman
Try using a JMS selector on the URI:

https://camel.apache.org/jms.html


On Thu, Jun 6, 2019 at 1:03 AM Wang Yan  wrote:

> I used below example to select message.
> although it can send matched message to toqueue
> but not matched messages are also dequeued
> What I want to achieve is only matched messages will be
> selected and sent to toqueue .
>
> Any suggestion or hints how to do this with camel filter?
>
> from("activemq:queue:inputqueue?transacted=true")
> .filter(header("foo").isEqualTo("bar"))
> .to("activemq:queue:toqueue");
>


select message via camel filter

2019-06-05 Thread Wang Yan
I used below example to select message.
although it can send matched message to toqueue
but not matched messages are also dequeued
What I want to achieve is only matched messages will be
selected and sent to toqueue .

Any suggestion or hints how to do this with camel filter?

from("activemq:queue:inputqueue?transacted=true")
.filter(header("foo").isEqualTo("bar"))
.to("activemq:queue:toqueue");