Consuming a remote FTP server triggered by a route in Camel 2.9

2012-08-07 Thread vishal1981
Hi, In the older documentation for FTP component I found this, "Consuming a remote FTP server triggered by a route The FTP consumer is built as a scheduled consumer to be used in the from route. However if you want to start consuming from a FTP server triggered within a route it's a bit cumbersome

RE: Consuming a remote FTP server triggered by a route in Camel 2.9

2012-08-10 Thread vishal1981
ttp://camel.apache.org/content-enricher.html [2] http://camel.apache.org/routepolicy.html [3] http://camel.apache.org/polling-consumer.html [4] http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/spi/PollingConsumerPollStrategy.html Best regards Pontus Ullgren On Tue, Aug

RE: Consuming a remote FTP server triggered by a route in Camel 2.9

2012-08-10 Thread vishal1981
think the poll enricher will do the same work for you. from("direct:start") .pollEnrich(ftpUri, 6) .to("direct:result"); // Pontus On Fri, Aug 10, 2012 at 7:37 PM, vishal1981 <[hidden email]> wrote: > Thanks for the reply. > > I eneded up doing someth

RE: Consuming a remote FTP server triggered by a route in Camel 2.9

2012-08-10 Thread vishal1981
ou always get only one file (and the file name is the same each time) I think the poll enricher will do the same work for you. from("direct:start") .pollEnrich(ftpUri, 6) .to("direct:result"); // Pontus On Fri, Aug 10, 2012 at 7:37 PM, vishal1981 <[hidden email]>

Customer PollingConsumerPollStrategy but with message header or exchange property

2012-08-15 Thread vishal1981
Hi, I want to log any and all FTP failures when using an FTP consumer. As I understand I have to, 1. Implement -PollingConsumerPollStrategy 2. set throwExceptionOnConnectFailed=true on the FTP URI. (Is there an equivalent one for File endpoint?) 3. Also setting, consumer.bridgeErrorHandler=true to

Why doesnt the validation component use Stream Source internally to parse the XML?

2012-09-04 Thread vishal1981
Hi, Excuse me for my lack of good understanding of the difference between SAXSource and StreamSource. I am trying to replace some validation code by the validator component provided by Camel. The existing code uses StreamSource to parse the XML. From what I can guess StreamSource would probably han

Getting consumer endpoint details or exchange headers in custom ExceptionHandler

2012-09-04 Thread vishal1981
Hi, I am implementing the ExceptionHandler to catch exceptions that happen while fetching a file remotely via FTP (e.g. IOExceptions etc.). In my custom ExceptionHandler I need a way to figure out which endpoint/FTP URI failed since I have more than one. The ExceptionHandler method -handleException

Re: Getting consumer endpoint details or exchange headers in custom ExceptionHandler

2012-09-05 Thread vishal1981
Guys please if you can comment? I am kinda stuck -- View this message in context: http://camel.465427.n5.nabble.com/Getting-consumer-endpoint-details-or-exchange-headers-in-custom-ExceptionHandler-tp5718633p5718694.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel-jsch in sink mode for one time copy from a remote host using SCP

2012-09-06 Thread vishal1981
Hi Hadrian , I am facing the same issue. Can you tell me where you checked in you fix. Thanks in advance, Vishal -- View this message in context: http://camel.465427.n5.nabble.com/camel-jsch-in-sink-mode-for-one-time-copy-from-a-remote-host-using-SCP-tp5680887p5718734.html Sent from the Camel -

Re: Getting consumer endpoint details or exchange headers in custom ExceptionHandler

2012-09-07 Thread vishal1981
Thanks for your replies. I am indeed using consumer.exceptionHandler however when I configure an FTP endpoint to FTP to a non-existing FTP server my exception handler is never fired. Is it because I have to add an additional PollingConsumerPollStrategy to handle such kind of exceptions? I am not su

Difference between exceptionHandler and pollStrategy

2012-09-07 Thread vishal1981
Hi, I am using FTP2 and File2 endpoints. I want to catch exceptions such as server not reachable or directory does not exist etc. If I use the "exceptionHandler" in the URI for the endpoint my custom Exception handler never gets invoked. If I use the "pollStrategy" in the URI it does get invoked f

Global exception policy across Route builder configure methods

2012-09-10 Thread vishal1981
Hi, If I understand correctly, the onException() defined in the configure method of a Routebuilder is global across all routes subsequently defined in that method using the Camel DSL. Is there a way to make these onException() global across routebuilder such that I can define in one place something

Re: Global exception policy across Route builder configure methods

2012-09-11 Thread vishal1981
Alright thanks. But then global scope doesn't really means global to the camelcontext. Its global to the routes currently being defined. Thanks for your help -- View this message in context: http://camel.465427.n5.nabble.com/Global-exception-policy-across-Route-builder-configure-methods-tp57190

File name as (Program|Delta)_YYYYDDMM.zip for File and FTP consumer?

2012-10-08 Thread vishal1981
Hi, I want to define a FTP consumer such that it consumes files with names such as, Program_20121008.zip, Delta_20121008.zip etc. i.e. Some filename patter followed by _ followed by toda's date. Now if I use the fileName property of the File consumer I can define the name as Program_${date:now:

Re: Forcefully shutting down routes...

2012-11-11 Thread vishal1981
Thanks for all your replies so far. Allow me to explain you my use case a little more in detail... As part of my route I am using the EJB endpoint. All that the EJB does is that it calls a stored procedure. The stored procedure takes a long time to execute (in the order of two to three hours). My r

RE: Forcefully shutting down routes...

2012-11-11 Thread vishal1981
Thanks for the reply. Is there a reason why one should not block on an EJB for that long? Idea for the async processing is great but then again I will have to introduce some kind of mechanism to wait till the processor is done to invoke the next processor in the route. There are processors which ar

Re: Question about change to FileUtil.java

2013-01-30 Thread vishal1981
I do indeed use 2.10.3. May I know when is 2.10.4 anticipated? -- View this message in context: http://camel.465427.n5.nabble.com/Question-about-change-to-FileUtil-java-tp5726527p5726566.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Question about change to FileUtil.java

2013-01-30 Thread vishal1981
Ah ok so its only broken in 2.10.3. Great I will switch to 2.10.2. Thanks again. -- View this message in context: http://camel.465427.n5.nabble.com/Question-about-change-to-FileUtil-java-tp5726527p5726576.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Question about change to FileUtil.java

2013-01-30 Thread vishal1981
Hi, None of the mirrors seem to be working for 2.10.2. I keep getting 404. This has been the case with several other release for me. I am sure my connectivity is ok. I am able to download 2.10.3 just fine. I am downloading via, http://www.apache.org/dyn/closer.cgi/camel/apache-camel/2.10.2/apache-c

RE: Question about change to FileUtil.java

2013-01-30 Thread vishal1981
re: https://repository.apache.org/content/repositories/snapshots/org/apache/camel/apache-camel/2.10.4-SNAPSHOT/apache-camel-2.10.4-20130130.045958-38.zip Babak vishal1981 wrote downloading from central works! thanks a lot. If you reply to this email, your message will be ad

Re: XML Validation fails with 2.10.3. Used to work in 2.9.2

2013-02-06 Thread vishal1981
Well I had an xerces jar coming from openejb. If I removed that it works. This was on 2.10.3. What I dont understand is why would the the jre try and use a parser in an external jar when it has the same one available as part of the java library. Havent tried with 2.10.2 and that jar in the classpat

Quartz triggers being deleted when shutting down Camel.

2013-02-08 Thread vishal1981
Hi, I am using Quartz as my starting endponig. I have defined the the route as follows, from("quartz://myTimer?trigger.repeatInterval=12&trigger.repeatCount=-1&stateful=true") .log("Test"); When Camel comes up I do see an entry being created in the database for the trigger an

Re: Quartz triggers being deleted when shutting down Camel.

2013-02-09 Thread vishal1981
Alright. Will create a Jira for it. However I had one more question related to the same issue. If Camel would not delete the job and the trigger, how would it realize that the quartz endpoint being created is not a new one but rather a one which was defined earlier. In other words, if I had a rout

Re: Quartz triggers being deleted when shutting down Camel.

2013-02-11 Thread vishal1981
Also, I see the following in the QuartzComponent.class, // fast forward start time to now, as we do not want any misfire to kick in trigger.setStartTime(new Date()); which would also suppress Quartz logic to handle misfires which is something we actually need. -- View thi

Re: Quartz triggers being deleted when shutting down Camel.

2013-02-11 Thread vishal1981
https://issues.apache.org/jira/browse/CAMEL-6067 -- View this message in context: http://camel.465427.n5.nabble.com/Quartz-triggers-being-deleted-when-shutting-down-Camel-tp5727257p5727365.html Sent from the Camel - Users mailing list archive at Nabble.com.

Way to determine if Route is running or not

2013-04-03 Thread vishal1981
Hi, Is there a way to query the CamelContext to find out if a route is running or not, as in, if a route is currently processing an exchange or a consumer endpoint of the route such as FTP or File is in the process of retrieving a file. I modify the routes with certain settings from the UI. Hence I

Re: Way to determine if Route is running or not

2013-04-04 Thread vishal1981
thanks! I will explore that. -- View this message in context: http://camel.465427.n5.nabble.com/Way-to-determine-if-Route-is-running-or-not-tp5730299p5730335.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Way to determine if Route is running or not

2013-04-04 Thread vishal1981
It works. Thanks that's exactly what I needed. BTW - Claus you have always been very supportive. Thanks. -- View this message in context: http://camel.465427.n5.nabble.com/Way-to-determine-if-Route-is-running-or-not-tp5730299p5730363.html Sent from the Camel - Users mailing list archive at Nabb

Pointers on setting up Camel on JBoss 5.1 using EJBs/Hibernate

2012-06-18 Thread vishal1981
Hi, I want to setup Camel as part on of my application being deployed to JBoss 5.1. My application nests in a bigger ear (which is a company wide umbrella application) and it contains several modules including 3 of mine - ejb jar, servlets war and REST API war. There is also an interface jar in the

RE: Pointers on setting up Camel on JBoss 5.1 using EJBs/Hibernate

2012-06-19 Thread vishal1981
Ibsen-2 [via Camel] [mailto:ml-node+s465427n5714712...@n5.nabble.com] Sent: Wednesday, June 20, 2012 1:08 AM To: Vishal Changrani Subject: Re: Pointers on setting up Camel on JBoss 5.1 using EJBs/Hibernate On Mon, Jun 18, 2012 at 9:36 PM, vishal1981 <[hidden email]> wrote: > Hi, &g

Preventing reading of a large XML file in memory

2012-07-15 Thread vishal1981
Hi, I am using Camel to transfer a file from my app server to an FTP server before converting it to a different format. The incoming file can be potentially huge (60 to 100 gbs) in size and I want to prevent Camel from reading the whole file in memory. I would like to call a bean which takes the in

Re: Preventing reading of a large XML file in memory

2012-07-16 Thread vishal1981
Thanks for the reply. So is it compulsory to use a JMS Endpoint to prevent Camel from reading the whole message in memory? What is to my bean I dont pass the message body as a parameter but just then filename? Will that prevent Camel from loading the whole message in memory before calling my bean m

RE: Preventing reading of a large XML file in memory

2012-07-16 Thread vishal1981
was the ftp endpoint i meant On Monday, July 16, 2012, vishal1981 wrote: > Thanks for the reply. > So is it compulsory to use a JMS Endpoint to prevent Camel from reading the > whole message in memory? > What is to my bean I dont pass the message body as a parameter but just > the

RE: Preventing reading of a large XML file in memory

2012-07-16 Thread vishal1981
:18 AM, vishal1981 <[hidden email]> wrote: > Thanks. I read about the working directory and thats exactly what I was > looking for. thank you. > Yet to try it though. > However, what if I want the same behaviour for File. i.e. File ->Bean (no > FTP). I dont want the fi

RE: Preventing reading of a large XML file in memory

2012-07-16 Thread vishal1981
, vishal1981 <[hidden email]> wrote: > Thanks again. > I am using something like the following, > > from(file...).to(ejb:cms/CamelToPluginAdaptor/local?method=process(${header.CamelFileAbsolutePath},${properties:outbox}/${header.PROVIDER_ID}.xml,${header.PROVIDER_ID}) > > Where

RE: Preventing reading of a large XML file in memory

2012-07-18 Thread vishal1981
Hi, Sorry to bug you again...but.. Now I have my route configuration as File -> MyBean ->Ftp Now MyBean converts the input file to a different format. I want to avoid doing a exchange.getOut().setBody() since the new file is huge. But somehow I want to convey to the FTP producer that FTP over the n

RE: Preventing reading of a large XML file in memory

2012-07-18 Thread vishal1981
y, July 16, 2012, vishal1981 wrote: > Thanks for the reply. > So is it compulsory to use a JMS Endpoint to prevent Camel from reading the > whole message in memory? > What is to my bean I dont pass the message body as a parameter but just > then > filename? Will that prevent Camel

RE: Preventing reading of a large XML file in memory

2012-07-19 Thread vishal1981
:52 PM, vishal1981 wrote: > Hi, > Sorry to bug you again...but.. > Now I have my route configuration as File -> MyBean ->Ftp > Now MyBean converts the input file to a different format. I want to avoid > doing a exchange.getOut().setBody() since the new file is > huge. But som