You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Ka...@dzbank.de on 2007/07/27 13:53:42 UTC

CAMEL: stripping properties from jms endpoint

Hi,
I am trying to use a jms queue as an endpoint, but unfortunately the 
properties for the enpoint configuration are not stripped from the queue 
name.

So what I am trying to do is following (trying to get the sample up and 
running:

...
        context.addRoutes( 
                new RouteBuilder() {
                        public void configure(){
 from("jms:queue:TEST?useVersion102=true&receiveTimeout=10000")
                                .to("file://test");
                                // set up a listener on the file component
                                from("file://test").process(
                                        new Processor(){
                                                public void 
process(Exchange e){
 System.out.println("Received exchange: "+e.getIn());
                                                }
                                        }
                                );
                        }
                }
        );
...

But instead receiving messages from queue TEST, a queue 
TEST?useVersion102=true&receiveTimeout=10000 gets created, which is of 
course empty.

Any idea how to get rid of the properties after the queue name ?

I am using CAMEL 1.0.0 RELEASE and EAServer 5.1 for message service.

Thanks
Karsten

Re: CAMEL: stripping properties from jms endpoint

Posted by James Strachan <ja...@gmail.com>.
On 7/27/07, Karsten.Schwarz@dzbank.de <Ka...@dzbank.de> wrote:
> Hi,
> sorry for bothering, I have downloaded the lastest snapshot, here it is
> working now

Sorry about that!

We'll try release 1.1 real soon with this fix included.

James


> Thanks
> Karsten
>
> Karsten Schwarz/IO/Frankfurt/DZ BANK@DZBANK schrieb am 27.07.2007
> 13:53:42:
>
> > Hi,
> > I am trying to use a jms queue as an endpoint, but unfortunately the
> > properties for the enpoint configuration are not stripped from the queue
>
> > name.
> >
> > So what I am trying to do is following (trying to get the sample up and
> > running:
> >
> > ...
> >         context.addRoutes(
> >                 new RouteBuilder() {
> >                         public void configure(){
> >  from("jms:queue:TEST?useVersion102=true&receiveTimeout=10000")
> >                                 .to("file://test");
> >                                 // set up a listener on the file
> component
> >                                 from("file://test").process(
> >                                         new Processor(){
> >                                                 public void
> > process(Exchange e){
> >  System.out.println("Received exchange: "+e.getIn());
> >                                                 }
> >                                         }
> >                                 );
> >                         }
> >                 }
> >         );
> > ...
> >
> > But instead receiving messages from queue TEST, a queue
> > TEST?useVersion102=true&receiveTimeout=10000 gets created, which is of
> > course empty.
> >
> > Any idea how to get rid of the properties after the queue name ?
> >
> > I am using CAMEL 1.0.0 RELEASE and EAServer 5.1 for message service.
> >
> > Thanks
> > Karsten


-- 
James
-------
http://macstrac.blogspot.com/

Antwort: CAMEL: stripping properties from jms endpoint

Posted by Ka...@dzbank.de.
Hi,
sorry for bothering, I have downloaded the lastest snapshot, here it is 
working now
Thanks
Karsten

Karsten Schwarz/IO/Frankfurt/DZ BANK@DZBANK schrieb am 27.07.2007 
13:53:42:

> Hi,
> I am trying to use a jms queue as an endpoint, but unfortunately the 
> properties for the enpoint configuration are not stripped from the queue 

> name.
> 
> So what I am trying to do is following (trying to get the sample up and 
> running:
> 
> ...
>         context.addRoutes( 
>                 new RouteBuilder() {
>                         public void configure(){
>  from("jms:queue:TEST?useVersion102=true&receiveTimeout=10000")
>                                 .to("file://test");
>                                 // set up a listener on the file 
component
>                                 from("file://test").process(
>                                         new Processor(){
>                                                 public void 
> process(Exchange e){
>  System.out.println("Received exchange: "+e.getIn());
>                                                 }
>                                         }
>                                 );
>                         }
>                 }
>         );
> ...
> 
> But instead receiving messages from queue TEST, a queue 
> TEST?useVersion102=true&receiveTimeout=10000 gets created, which is of 
> course empty.
> 
> Any idea how to get rid of the properties after the queue name ?
> 
> I am using CAMEL 1.0.0 RELEASE and EAServer 5.1 for message service.
> 
> Thanks
> Karsten