:
>> >> >>
>> >> >> > On Mon, Sep 26, 2011 at 6:05 PM, kal2420 <[hidden email]> wrote:
>> >> >> >> Thanks Claus,
>> >> >> >>
>> >> >> >> I got busy with work, and I am just getting
dpoint.setSelector(selector);
> >> >> >>
> >> >> >
> >> >> > So you have a route with that particular endpoint
> >> >> > from(endpoint).to("xxx")
> >> >> >
> >> >> >
s correct:
>> >> >>
>> >> >> // once all routes are up and running
>> >> >> // set selector on jms endpoint
>> >> >> CamelContext ctx = getContext();
>> >> >> JmsEndpoint end
s endpoint
> >> >> CamelContext ctx = getContext();
> >> >> JmsEndpoint endpoint =
> >> >> ctx.getEndpoint("activemq://queue:test-1",JmsEndpoint.class);
> >> >> // String selector = "userid='test12'"; // also
gt;> // String selector = "userid='test12'"; // also tried with %3D url
>> >> format
>> >> String selector = "userid IN ('test12' , 'terst234');
>> >> endpoint.setSelector(selector);
>> >>
>> >
&
27;);
> >> endpoint.setSelector(selector);
> >>
> >
> > So you have a route with that particular endpoint
> > from(endpoint).to("xxx")
> >
> >
> > The selector should use a SQL like syntax. I actually do not know if
> &g
selector should use a SQL like syntax. I actually do not know if
> ActiveMQ has an logging to WARN/ERROR level
> if the syntax is invalid.
>
>
>
>> Issue: I am seeing all messages being processed, while i only want to
>> process messages where i have userid header value
est12' or
> 'terst234'
>
> Thanks
> Kal
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Activemq-dynamic-endpoint-configuration-tp4749853p4841926.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
Cla
selector = "userid IN ('test12' , 'terst234');
endpoint.setSelector(selector);
Issue: I am seeing all messages being processed, while i only want to
process messages where i have userid header value set to 'test12' or
'terst234'
Thanks
Kal
--
View this messa
I will try out
this approach and see how it goes.
Kal
--
View this message in context:
http://camel.465427.n5.nabble.com/Activemq-dynamic-endpoint-configuration-tp4749853p4776516.html
Sent from the Camel - Users mailing list archive at Nabble.com.
ate based on
> > “from(“activemq:queue..”)” ? ex: polled or scheduled endpoint.
> >
> > Would the selector uri get re-created on every read? does camel just
> change
> > endpoint configuration or re-create a new endpoint ?
> >
> > If you have a good examp
ration or re-create a new endpoint ?
>
> If you have a good example on how to do dynamic selector with
> camel/activemq, I would love to see it.
>
> I really appreciate all your help.
>
> Thanks
> Kal
>
>
> --
> View this message in context:
> ht
t; Date: Thu, 1 Sep 2011 16:57:08 -0700
> From: kalpi...@cisco.com
> To: users@camel.apache.org
> Subject: Re: Activemq dynamic endpoint configuration
>
> Ashwin,
>
> Thanks, I agree this is a bad approach. I am a bit confused about how
> often configure() method is invoked
od example on how to do dynamic selector with
camel/activemq, I would love to see it.
I really appreciate all your help.
Thanks
Kal
--
View this message in context:
http://camel.465427.n5.nabble.com/Activemq-dynamic-endpoint-configuration-tp4749853p4760387.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Software Corporation subsidiary)
http://fusesource.com
Blog: http://opensourceknowledge.blogspot.com
-
--
View this message in context:
http://camel.465427.n5.nabble.com/Activemq-dynamic-endpoint-configuration-tp4749853p4758889.html
Sent from t
oint me to a good unittest or documentation that would help
with
dynamic selector uri and with check to see if ready to process new message.
Thanks in advance for all your help.
Kal
--
View this message in context:
http://camel.465427.n5.nabble.com/Activemq-dynamic-endpoint-con
16 matches
Mail list logo