how to use decoder and encoder in netty component?

2012-04-14 Thread xiangqiuzhao
my URI is .to("netty:tcp://localhost:6789?encoders=#myEncoders&decoders=myDecoders&sync=true") test main program like: Object decoder = new LengthDecoder(); //appctx.getBean("mydecoder"); Object encoder = new MessageEncoder(10); //appctx.getBean("myencoder"); Simp

Re: newbie question re LifecycleManagementStrategy

2012-04-14 Thread Bob Jolliffe
Hi Claus On 13 April 2012 16:12, Claus Ibsen wrote: > Hi > > What runtime do you use? Tomcat, Standalone, OSGi etc? Both tomcat and jetty in different settings. > Camel should pickup that bean automatic as it lookup the registry by type. > As shown here > http://camel.apache.org/advanced-config

Re: handling exception at endpoints / solved

2012-04-14 Thread Christian Müller
Good to know you could figure it out by yourself. I would response later to your question with the solution you mentioned (I'm on a shopping tour with my girl friend at present... ;-) ). There are also others. Have a look at the parameter binding annotations: http://camel.apache.org/parameter-bind

Re: handling exception at endpoints / solved

2012-04-14 Thread Marco Mistroni
Hello ok i got the error. wrong signature in my handleException method. it should be handleException(Exchange exchange) i think Claus might have mentioned me the correct signature in some past email, but somehow that mail got lost Good thing i m pleased about is that i spotted the signature err

Consuming multiple JMS messages in one single transaction

2012-04-14 Thread Thomas Johansen
Hi, How can I consume multiple JMS messages in one single transaction with Camel? Is it even possible? from("jms:myqueue").transacted().to("something") will create a transaction per consumed message, which is not what I want. I actually want to consume X messages, aggregate them to a report and

Re: handling exception at endpoints

2012-04-14 Thread Marco Mistroni
Hello Claus, sorry to bother, but i am still losing the plot with Exception Handling :( i read Camel In action chapter, and this is what i came out with: java.lang.Exception true

Re: multiple from endpoints and jmx console

2012-04-14 Thread Claus Ibsen
On Fri, Apr 13, 2012 at 9:09 PM, surya wrote: > Hi Claus, > > I am using ver 2.9.0. > > I am working around this as: > > for(string endpoint: getFromEndPoints()){ >    from(endpoint).to("bean:someBean); > } > > not really using from(endpoint1,endpoint2) as makes it not visible in > jconsole. > > L

Re: Receiving NodeDeleted event using Camel's ZooKeeper component

2012-04-14 Thread Claus Ibsen
Hi I logged a JIRA ticket https://issues.apache.org/jira/browse/CAMEL-5170 On Wed, Apr 11, 2012 at 5:59 AM, Claus Ibsen wrote: > On Tue, Apr 10, 2012 at 4:39 PM, GLIMMERVEEN Arnoud > wrote: >> Hi all, >> >> We've been using Camel for a while now and we are very happy with it!  :-) >> >> Current