Camel parameter binding annotations with osgi services

2010-04-05 Thread capacman
Hi all, in my project i have a bundle which exposes an interface as a osgi service and another bundle consume this service and use it in a camelcontext as a bean. Interface is: public interface ExampleService { // public methods go here... String scramble(@Header(value = "user") String

Re: Camel : Split & Aggregator Patterns

2010-04-05 Thread titexe
Thank you , i have resolved this problem using the XSLT Component Claus Ibsen-2 wrote: > > Hi > > Maybe you can use XML transformation to transform your XML into the > other format. > > Otherwise the Splitter EIP can auto aggregate the messages it has split. > See its wiki page for example.

Camel : suggestion for Debuging errors

2010-04-05 Thread titexe
suggestion : to debug errors & logs rapidly on camel, it's possible to reference in log or in exception, id for the route and id for component who generate this error ? i think that it was the best and the easiest way, to debug errors on camel ? Thank you in advance, titexe -- View this messa

Re: Camel : suggestion for Debuging errors

2010-04-05 Thread Mick Knutson
In Log4j, you can specify the class that generated the error. You can also use Spring Apects to track errors and log pertinent info you seek. --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring & Agile Consulting p. (866) BLiNC-411: (254-6241-1) f.

Re: Camel : suggestion for Debuging errors

2010-04-05 Thread Claus Ibsen
Hi If we switch to a better logkit such as slf4j we can use MDC which can decorate with additional information http://logback.qos.ch/manual/mdc.html On Mon, Apr 5, 2010 at 12:57 PM, Mick Knutson wrote: > In Log4j, you can specify the class that generated the error. You can also > use Spring Ap

Camel with MINA 2.0

2010-04-05 Thread lujan99
Can I use MINA-component with MINA 2.0 ??? -- View this message in context: http://old.nabble.com/Camel-with-MINA-2.0-tp28139069p28139069.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel : suggestion for Debuging errors

2010-04-05 Thread Mick Knutson
Claus, what do you mean by "we". Do you mean that the Camel project needs to make a change. or this can be a replacement for log4j in any app context? I have not used slf4j but keep hearing about this and now my interest is peaked. --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterpr

Re: Camel : suggestion for Debuging errors

2010-04-05 Thread Claus Ibsen
On Mon, Apr 5, 2010 at 1:20 PM, Mick Knutson wrote: > Claus, what do you mean by "we". Do you mean that the Camel project needs to > make a change. or this can be a replacement for log4j in any app context? > Yeah the Camel code needs to change from Apache Commons Logging API to pure slf4j which

Re: Camel : suggestion for Debuging errors

2010-04-05 Thread titexe
thank you for your response, in my opinion, if we have this option integrated by default in component log of camel, it would be perfect. Thank you, titexe Mick Knutson-3 wrote: > > In Log4j, you can specify the class that generated the error. You can also > use Spring Apects to track errors

Re: Camel with MINA 2.0

2010-04-05 Thread Claus Ibsen
On Mon, Apr 5, 2010 at 1:18 PM, lujan99 wrote: > > Can I use MINA-component with MINA 2.0 ??? > No camel-mina is using Mina 1.x. We want to upgrade to use Mina 2.0 when its GA. But the Mina people takes forever to get 2.0 out of the door. I recon its 2+ years now they have worked on 2.x. I sug

Re: Camel : suggestion for Debuging errors

2010-04-05 Thread titexe
i dont have seen your response claus ibsen, do you want that i create this ticket JIRA ? titexe titexe wrote: > > thank you for your response, > > in my opinion, if we have this option integrated by default in component > log of camel, it would be perfect. > > Thank you, > > titexe > > >

Re: Camel : suggestion for Debuging errors

2010-04-05 Thread Claus Ibsen
On Mon, Apr 5, 2010 at 1:32 PM, titexe wrote: > > i dont have seen your response claus ibsen, > > do you want that i create this ticket JIRA ? > There is already a ticket about slf4j. I think you can add a comment on that ticket about using MDC or the likes to provide component/route/endpoint/pro

Re: Message blocks route until all redelivery attempts are exhausted

2010-04-05 Thread Dragisa Krsmanovic
Yes, but this only increases number of messages that are needed to "block" the route. What if I have thousands of messages and somewhere between 1 and 1000 can fail ? I don't want "good" messages to wait for "bad" messages to exhaust their retries. If I would set concurrentConsumers=2000 that can

Re: Message blocks route until all redelivery attempts are exhausted

2010-04-05 Thread Claus Ibsen
Hi It depends on the situation but sometimes you could simply let it fail and rollback to the source. But what you are looking for is currently not implemented in Camel. Having its RedeliveryErrorHandler support non blocking delays. This is something we will add in the future. I was hoping I got