Re: Endpoint exception handling

2012-02-24 Thread tkatva
Hi Claus Thank you for your responses... My concern is that I want polling FTP/FTPS/SFTP/FILE-endpoints to call my custom code if error occurs... Can you point me to a example where I can see how I can apply this pollingStrategy to these endpoints ? I am constructing endpoints programmatically

Re: Endpoint exception handling

2012-02-21 Thread tkatva
Hi, thank you for your quick response... And yes I mean consumer, so is there anyway to get programmatically "notified" if exception occurs in consuming endpoint ? In for example FTP/FTPS/SFTP/FILE endpoints ? I would like to run my custom code whenever exception occurs in consuming endpoints ...

Endpoint exception handling

2012-02-21 Thread tkatva
Hello Camel is great but one thing I am wondering is that is there a way to catch a Endpoint exception ? For example if I am polling on a directory and the url is spelled wrong, can I catch that exception programmatically ? Or do just need to check the log for it ? Thank you Best Regards Tuomas

Endpoint exception

2011-12-01 Thread tkatva
It's me again... I was wondering that if I have Route and I have defined onException-method to catch all exceptions, like: routeDef.onException(Exception.class).Process(...Jaadi jaadi processing); It does not catch exceptions happening in the polling endpoint... Is that because I am doing somet

Re: Programatically using Camel with different jms providers

2011-11-30 Thread tkatva
Just to clarify... I would like to make a "generic" Jms endpoint which could retrieve connection factory and queue via JNDI. Also what I need to be able to do is specify all these parameters dynamically (also JNDI-names). If someone could give an example on how to do this I would be really really

Re: Programatically using Camel with different jms providers

2011-11-30 Thread tkatva
Thank you kindly for your answer. This was great to know. Do have any examples how to use these? I would need the get the connection factory instance via JNDI and the queue also. Thank you for good work Best Regards Tuomas -- View this message in context: http://camel.465427.n5.nabble.com/Pr

Re: Programatically using Camel with different jms providers

2011-11-29 Thread tkatva
Thank you for your answer. Only problem is that I need to programmatically define connection factories, host, port and other connection details. I cannot use Spring XML because I don't know these details in advance. I get the connection details from database and I need to assign these values at run

Programatically using Camel with different jms providers

2011-11-28 Thread tkatva
I have been searching for examples on how can I configure apache camel to use different Jms providers... For example if I have two remote application servers with with jms queues. Lets say a Weblogic and Glassfish. I want to be able to send messages from file or ftp endpoints to these application s

Re: Adding File name filter for RouteEndpointDefinition

2011-11-06 Thread tkatva
Thank you! :) You're the best... This include solves all my problems. You saved my day. Keep up the good work. Best Regards Tuomas -- View this message in context: http://camel.465427.n5.nabble.com/Adding-File-name-filter-for-RouteEndpointDefinition-tp4968230p4968355.html Sent from the Came

Re: Adding File name filter for RouteEndpointDefinition

2011-11-06 Thread tkatva
Also one question comes to mind... How can I add this GenericFileFilter to my endpoint ? Can I add this to my endpoint ? Can I add it programmatically ? And how can I do it ? Thank you very much... :) Best Regards Tuomas Katva -- View this message in context: http://camel.465427.n5.nabble.com/A

Adding File name filter for RouteEndpointDefinition

2011-11-06 Thread tkatva
I have code where I dynamically try to add Endpoints and Endpoint Filters to CamelContext. But haven't been able to get FileFilter working on File- or FtpEndpoint's. For example I want to be able to filter only files with given parameters, for example I want to download files only with txt extensio

Re: Adding processing per Consumer endpoint

2011-11-01 Thread tkatva
Hello Thank you for your answer. One thing that is troubling me is that can you add processing per target endpoint ? If for example consumer B wants to have it's data in XML-form and consumer C wants to have its data in CSV-form ? Is it possible to add processor per consumer endpoint ? Thank yo

Adding processing per Consumer endpoint

2011-10-30 Thread tkatva
Hi I was wondering is it possible to add Processor per consumer/target endpoint ? Let's say that I have ftp - producer/source endpoint and multiple targets, then what I would like to do is process current file differently for each endpoint. Is that possible or just for the whole route ? Also I a

Re: Creating routes dynamically

2011-10-29 Thread tkatva
Also being able to add processors to each target endpoint would be necessary... -- View this message in context: http://camel.465427.n5.nabble.com/Creating-routes-dynamically-tp4948062p4948350.html Sent from the Camel - Users mailing list archive at Nabble.com.

Creating routes dynamically

2011-10-29 Thread tkatva
Hi I am newbie with Camel and it seems to be very powerful framework. One thing that I haven't found out yet is that how can you create routes programmatically/dynamically? So let's say I created following code :   camel = new DefaultCamelContext();                                 camel.