Re: pool thread dies after FTP error

2011-08-31 Thread Sorin Silaghi
OK that is great news. Any idea when the next version will be released? Is there an announcement mailing list for Fuse we could folow? thanks On Wed, Aug 31, 2011 at 6:48 PM, Claus Ibsen wrote: > On Wed, Aug 31, 2011 at 4:02 PM, Sorin Silaghi > wrote: > > Hi, > > > > > > Ok thanks. I

RE: autostartup

2011-08-31 Thread Damian Harvey
Thanks Claus. For the time being I can add a few lines of code to the configure() : for(RouteDefinition route : getRouteCollection().getRoutes()) { route.setAutoStartup(someBooleanProperty); } Regards, Damian. -Original Message- From: Claus Ibsen [mailto:claus.ib...@gmail.com

Re: Embedded web console

2011-08-31 Thread boday
I see the issue, in camel-web\src\main\java\org\apache\camel\web\resources\RouteStatusResource.java, the setStatus() method returns return Response.seeOther(new URI("/routes")).build() after it starts/stops the route...this was to "refresh" the route list display, but it doesn't play nice with an e

Re: Embedded web console

2011-08-31 Thread Claus Ibsen
On Wed, Aug 31, 2011 at 9:06 PM, wilsonsjc wrote: > Hi All, > > I too embeded camel web console in my app it's working. > To view the routes here is the url http://localhost:8081/services/routes > > But when I click the "stop" button to stop one of the route, the URL > redirect  to http://localhos

Re: Embedded web console

2011-08-31 Thread wilsonsjc
Hi All, I too embeded camel web console in my app it's working. To view the routes here is the url http://localhost:8081/services/routes But when I click the "stop" button to stop one of the route, the URL redirect to http://localhost:8081/routes (with out my app context "services") But It stop

Re: What happens to Exchange's exception in DeadLetterChannel?

2011-08-31 Thread David Tombs
On Wed, Aug 31, 2011 at 11:41 AM, Claus Ibsen wrote: > > Thanks I have updated both pages. Thank _you_. > You are welcome to send in an ICLA to Apache, so you in the future > will be able to edit the documentation, and contribute to the project. > Its also one step closer to be a committer, as a

Re: Splitter file name automatic generation

2011-08-31 Thread Claus Ibsen
Hi You can extract that id from the xml using xpath into a header And then use that header in the fileName option for the file endpoint Something alike this. ////text()   You may need to fiddle a bit with the xpath until it works. On Wed, Aug 31, 2011 at 5:18 PM, kmute79 wrote: >

Re: pool thread dies after FTP error

2011-08-31 Thread Claus Ibsen
On Wed, Aug 31, 2011 at 4:02 PM, Sorin Silaghi wrote: > Hi, > > >          Ok thanks. I haven't been able to reproduce the problem. It seems > it happens in 2 steps: there is an error on the FTP server(this one might > vary so I don't think it's the cause) , our client then tries to disconnect > a

Re: What happens to Exchange's exception in DeadLetterChannel?

2011-08-31 Thread Claus Ibsen
On Wed, Aug 31, 2011 at 5:20 PM, David Tombs wrote: > On Wed, Aug 31, 2011 at 10:59 AM, Claus Ibsen wrote: >> On Wed, Aug 31, 2011 at 4:34 PM, David Tombs wrote: >>> Hi there, >>> >>> I'm using a Dead Letter Channel error handler and am a little confused >>> about what happens to the original Ex

Re: What happens to Exchange's exception in DeadLetterChannel?

2011-08-31 Thread David Tombs
On Wed, Aug 31, 2011 at 10:59 AM, Claus Ibsen wrote: > On Wed, Aug 31, 2011 at 4:34 PM, David Tombs wrote: >> Hi there, >> >> I'm using a Dead Letter Channel error handler and am a little confused >> about what happens to the original Exception while on the dead letter >> queue. >> >> - Camel In

Splitter file name automatic generation

2011-08-31 Thread kmute79
Hi to all, I'd like to have a splitter that splits an xml file using xpath and save all the files named, one for every istance in the xpath expression. For example: my input xml is something like that .. .. .. my camel split route is:

Re: Debugging timeouts in SedaProducer.process

2011-08-31 Thread Samuel Cox
I don't know what I did, but it's working now. I'll take it, but I'm not a big fan of that;) On Wed, Aug 31, 2011 at 7:52 AM, Samuel Cox wrote: > I'm thinking this is not what you want, but here is the declaration of my > route: > >   >       >         uri="vm:di.services.batch?timeout=6&c

Re: What happens to Exchange's exception in DeadLetterChannel?

2011-08-31 Thread Claus Ibsen
On Wed, Aug 31, 2011 at 4:34 PM, David Tombs wrote: > Hi there, > > I'm using a Dead Letter Channel error handler and am a little confused > about what happens to the original Exception while on the dead letter > queue. > > - Camel In Action says that it's stored in the > 'Exchange.CAUSED_EXCEPTIO

What happens to Exchange's exception in DeadLetterChannel?

2011-08-31 Thread David Tombs
Hi there, I'm using a Dead Letter Channel error handler and am a little confused about what happens to the original Exception while on the dead letter queue. - Camel In Action says that it's stored in the 'Exchange.CAUSED_EXCEPTION' property, which doesn't seem to exist (p127). - DeadLetterChanne

Re: Can I use Spring to inject values into Custom RouteBuilder that's loaded via packageScan

2011-08-31 Thread David Karlsen
You could use normal spring injection with @Value? 2011/8/31 bbuzzard > Can I use Spring to inject values into a Custom RouteBuilder that's loaded > via packageScan? I would like to pass in a string that changes depending > on > the physical machine the custom RouteBuilder is loaded on. If thi

onException exits from all routes

2011-08-31 Thread plowry
Hi all, I am working on error handling across multiple routes. client -> route A -> route B exchange pattern = InOut I want to process exceptions thrown in route B, by (1) setting a result field in my message, (2) returning from route B, and then (3) continuing processing in route A I can a

Re: pool thread dies after FTP error

2011-08-31 Thread Sorin Silaghi
Hi, Ok thanks. I haven't been able to reproduce the problem. It seems it happens in 2 steps: there is an error on the FTP server(this one might vary so I don't think it's the cause) , our client then tries to disconnect and reconnect in order to continue pooling and only after that the

Re: pool thread dies after FTP error

2011-08-31 Thread Claus Ibsen
Hi It was this ticket http://fusesource.com/issues/browse/MR-470 And yeah it was backported to an earlier release of Fuse 2.6 as well. It does a try .. catch in the run method, which ought to keep the tread alive. You may want to set the new runLoggingLevel to something that you can see in your

Re: Debugging timeouts in SedaProducer.process

2011-08-31 Thread Samuel Cox
I'm thinking this is not what you want, but here is the declaration of my route: I have never explicitly configured the Camel context. If such a thing exists, either Fuse is doing it for me or someone on my team is. On Wed, Aug 31, 2011 at 6:22 AM, Willem

Re: pool thread dies after FTP error

2011-08-31 Thread Sorin Silaghi
Hi Claus, Thanks for the quick reply. Do you happen to know which version that happened in? We're using version 2.6.0-fuse-02-05 and I checked now versions 2.7.1 and 2.8.0 and I can't see much difference. The logging is the part that has changed the most in these versions.

Can I use Spring to inject values into Custom RouteBuilder that's loaded via packageScan

2011-08-31 Thread bbuzzard
Can I use Spring to inject values into a Custom RouteBuilder that's loaded via packageScan? I would like to pass in a string that changes depending on the physical machine the custom RouteBuilder is loaded on. If this is possible could you provide a simple example showing how to do this within th

Re: usernames and passwords in logs

2011-08-31 Thread Claus Ibsen
Hi We have logic in place which masks the username/password, but that is often for endpoints being logged in the message, and not from the causes exceptions. Please open a JIRA ticket, On Wed, Aug 31, 2011 at 11:54 AM, Sorin Silaghi wrote: > Hi all, > > > >           I noticed a while ago tha

Re: pool thread dies after FTP error

2011-08-31 Thread Claus Ibsen
Hi The ScheduledPollConsumer have been improved in later releases to be more resilient and avoid terminating due unhandled exceptions being thrown. On Wed, Aug 31, 2011 at 11:24 AM, Sorin Silaghi wrote: > Hi all, > > > >               We have a problem with FTP consumers dying on errors. It >

Re: Debugging timeouts in SedaProducer.process

2011-08-31 Thread Willem Jiang
Can you show us the camel context configure ? Is there any sead consumer defined in the route ? On Wed Aug 31 18:55:47 2011, Samuel Cox wrote: Hi, We're using Camel 2.6.0 in Fuse 4.3. We have a Camel route that exposes a bean method as a vm endpoint. I'm trying to test this route with PaxExam

Debugging timeouts in SedaProducer.process

2011-08-31 Thread Samuel Cox
Hi, We're using Camel 2.6.0 in Fuse 4.3. We have a Camel route that exposes a bean method as a vm endpoint. I'm trying to test this route with PaxExam 2.2.0. When I send an exchange to it, it always times out. I have put breakpoints in the bean method, but they never get hit. It hangs in Seda

usernames and passwords in logs

2011-08-31 Thread Sorin Silaghi
Hi all, I noticed a while ago that when exceptions are thrown on an endpoint the username and password for that endpoint end up in the logs. It happened for FTP and here's a starcktrace where I had to edit the information out before posting on the mailing list: http://pastebin.com/niX

pool thread dies after FTP error

2011-08-31 Thread Sorin Silaghi
Hi all, We have a problem with FTP consumers dying on errors. It happened a couple of times on one of our servers but we can't really reproduce it. I've looked at the code and I can't figure out why it happens. The only possibilities are that ScheduledPollConsumer throws an except

RE: ??: How to test routes in exported OSGI bundles using Camel Test Framework

2011-08-31 Thread XiaoPeng Li
Hi Thanks for reply. I choose to using Camel Properties component to replace the URI in Endpoint with property, and then users can have another version properties only for test. -Original Message- From: Willem Jiang [mailto:willem.ji...@gmail.com] Sent: Monday, August 29, 2011 6:51 P

Error Handling In Camel

2011-08-31 Thread aum.struts
Hi All, While working with Camel i have a requirement where i need to validate an XML with a given XSD and in case of validation faliure need to stop the process and notify user about valdation failed First part is working fine for the validation as i am using camel out of the box validator and i

Semaphore / done files problem

2011-08-31 Thread Laurentiu Trica
Hi, I am using Camel 2.6 for FTP polling with semaphores (done files). We encountered two problems in two different situations: First, if we put the option move=.archive so the processed file is moved to .archive folder, it happened that for some files the semaphore was deleted, but the file rema

Re: autostartup

2011-08-31 Thread Tarjei Huse
On 08/31/2011 02:06 AM, Damian Harvey wrote: > The docs say that you can set whether to autostart a route based on a > boolean, string or property > > from("activemq:queue:special").autoStartup(startupRoute).to("file://backup"); > > However it looks like autoStartup() has been removed (or never wa