Camel File Polling Exception

2013-07-24 Thread Jothi
When I read several files from a directory using the file component, should any exception occur, I can see in the log that Camel tries to read the files multiple times and constantly writes the exception to the log and eventually run into a OutOfMemory problem. How to instruct Camel to stop

Re: No Consumer available Exception

2013-07-24 Thread Jothi
What even confuses me is that I have another route that looks more or less the same, the only difference being a couple of more choice blocks. That route works perfectly fine. Spent about 3 hours trying to analyze the problem but fruitless. I'm calling it a day! Will work on it with a fresh mind

Re: No Consumer available Exception

2013-07-24 Thread Jothi
Seriously, I do not understand what is happening with this particular route! I added the startup order and it did not help either. Baffled now! -- View this message in context: http://camel.465427.n5.nabble.com/No-Consumer-available-Exception-tp5736133p5736146.html Sent from the Camel - Users

No Consumer available Exception

2013-07-23 Thread Jothi
Camel Users, I face a strange error when I tried to run one of my routes. Why I say strange is because, I can see that the consumer for one of the routes is started, but it still fails when run! Here is the route; // Process and send to the aggregator

Re: No Consumer available Exception

2013-07-23 Thread Jothi
That's the whole route what I have posted above! It is definitely strange as I have another route that does the same thing and that route worked perfectly fine! I tried changing the names of the route id, direct constants and its values, but of no help! What is even more strange is that I can see

Re: Can we give Configure Stop Time for Quartz Component

2013-07-19 Thread Jothi
Take a look at the CronScheduledRoutePolicy [1]. With this you can specify the start and stop time for your route. You create your route with the noAutoStartup! [1] - http://camel.apache.org/cronscheduledroutepolicy.html Regards, Joe -- View this message in context:

Re: Error in camel-bindy

2013-07-17 Thread Jothi
As I understand from Claus's message is that it is not possible to specify the class name to the BindyCsvDataFormat as this feature seems not to be available with the camel version that I'm using! -- View this message in context:

Re: Error in camel-bindy

2013-07-15 Thread Jothi
Is it possible with Camel 2.8.0 to provide the class name instead of the package name to the unmarshall dsl? Can I instead of .unmarshal(new BindyCsvDataFormat(de.test.model) do .unmarshal(new BindyCsvDataFormat(de.test.model.MyModel) -- View this message in context:

OneToMany in camel-bindy

2013-07-13 Thread Jothi
Guys, Is this OneToMany a true OneToMany? I guess it only applies when the entire CSV file has some common elements? I have a file that has entries like below: 1,abc,def,joe 1,abc,xyz,san 2,abc,mno,ram 3,abc,fgh,sam When I tried with the above file which used the OneToMany annotation between

Re: CSV files processing

2013-07-12 Thread Jothi
I'm considering the Bindy component to marshall and unmarshall stuff. I can see that there is a OneToMany annotation that I can use. Will the OneToMany only map to a List or can I use a Set as well? -- View this message in context:

Re: CSV files processing

2013-07-12 Thread Jothi
I have a Bindy bean written as below: public class ObjectMaster { private String field1; @OneToMany private List Object1 field2; @OneToMany private List Object2 field3; } I have two CSV files in which unmarshalling one of them would produce a one to many relationship

Re: Error in camel-bindy

2013-07-12 Thread Jothi
After a bit of fiddling with it, I had to give up on the bindy component as it does not fit to what I have. My domain model consist of a parent class and a sub class where some of the fields are annotated in the parent class. But this leads to an error when used with the bindy component. So this

Re: Error in camel-bindy

2013-07-12 Thread Jothi
I tried using version 2.9.x, but that seems not to be feasible as all the other modules use 2.8.0 and I get dependency path initialization errors when it is trying to resolve the camel core libraries. Is there another way to get around this issue? Regards, Joe -- View this message in context:

Re: Error in camel-bindy

2013-07-12 Thread Jothi
I can now see that it is fixed in versions 2.8.2 and above. But this brings me another question. Even though I use Camel 2.8.0, can I use version 2.9.0 for the bindy component? -- View this message in context: http://camel.465427.n5.nabble.com/Error-in-camel-bindy-tp5735580p5735582.html Sent

Error in camel-bindy

2013-07-12 Thread Jothi
Guys, I face a strange error when trying to use the camel-bindy component! The separator has not been defined in the annotation @CsvRecord or not instantiated during initModel. I have specified this in the annotation. I checked the old posts by doing a simple search and I came to know that

Re: Error in camel-bindy

2013-07-12 Thread Jothi
This is what I do to initialize the bindy component! DataFormat bindy = new BindyCsvDataFormat(com.test.mypackage.csvdata); The package contains the classes that are annotated with the @CsvRecord annotation. The package also contains some other classes that do not have this annotation. But I

CSV files processing

2013-07-10 Thread Jothi
Is there a way to find out which CSV file that is currently being processed? I mean I have a couple of CSV files and I do not know the name of those CSV files. All I know is their structure. If it was XML, I can identify the file structure using xpath. Is there something similar that I can do for

Re: Camel Blueprint Test Support

2013-07-09 Thread Jothi
Let me try that today and post the results here! -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Blueprint-Test-Support-tp5735198p5735330.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel Blueprint Test Support

2013-07-08 Thread Jothi
I did give it a try and eventually I ran into a ClassNotFoundException. It complained that it was not able to find the ModelCamelContext. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Blueprint-Test-Support-tp5735198p5735281.html Sent from the Camel - Users mailing

Re: Camel Development in eclipse

2013-07-07 Thread Jothi
If you are looking for an UI that will help you drag and drop components, Fuse IDE is the way to go. It is built on top of eclipse. So if you have been an eclipse user, it should be relatively easy for you to set it up. -- View this message in context:

Camel Blueprint Test Support

2013-07-05 Thread Jothi
Camel Users, I'm using the fuse 2.8.0-fuse-00-08 version of Camel libraries. I want to use the CamelBlueprintTestSupport but as I understand, it is available only with Camel 2.10. Should that matter? I assume that the dependency to the blueprint test support would be to Camel 2.10 with the scope

Re: Aggregator to be pulled from the bean definition

2013-06-27 Thread Jothi
I figured that out. I had to browse through the API reference that took me a while! Anyways, thanks for the response! Regards, Jothi -- View this message in context: http://camel.465427.n5.nabble.com/Aggregator-to-be-pulled-from-the-bean-definition-tp5734826p5734884.html Sent from the Camel

Aggregator to be pulled from the bean definition

2013-06-26 Thread Jothi
Guys, I have the following route: from(direct:aggregate).aggregate(header(CORRELATION_HEADER_KEY), new MyAggregationStrategy()).completionTimeout(3000).to(DIRECT_FINISH_AGGREGATE).routeId(myAggregator); I want this new MyAggregationStrategy() to be injected via a bean definition from my

Exception Handling Scenario - Suggestions Needed

2013-05-15 Thread Jothi
Camel Users: I have the following route: from(activemq:{{in.queue}}) .process(new MyInputProcessor()) .beanRef(myBeanProcessor) .process(new MyOutputProcessor()) .to(activemq:{{out.queue}}); In my beanRef, I change the body of the Exchange to a different type after processing

Re: Read multiple files from a directory

2013-04-30 Thread Jothi
Thanks for the message. Is there an alternative to using the Aggregator pattern? Though I like the Aggregator pattern, I would like to think of any other alternatives that might be possible to read multiple files at once. -- View this message in context:

Re: Strange Error with XSLT transformation

2013-04-15 Thread Jothi
Sorry for the confusion. It was an editing mistake that I made. You can assume that the XML is properly formed. Has it got to do something with the camel core version that I'm using? -- View this message in context:

Re: Strange Error with XSLT transformation

2013-04-15 Thread Jothi
I just got to know that it is a known issue. http://fusesource.com/forums/message.jspa?messageID=12367 Will have to now use a workaround to solve this. -- View this message in context: http://camel.465427.n5.nabble.com/Strange-Error-with-XSLT-transformation-tp5730764p5730885.html Sent from

Strange Error with XSLT transformation

2013-04-12 Thread Jothi
Hi all, I'm facing a strange error when trying to perform an XSLT transformation on an XML file which I read from the file system. Here is my route: from(direct:processResponse).to(xslt:com/test/processor/response.xsl).to(direct:processedResponse);

Re: Camel Aggregator Strategy Question

2013-03-20 Thread Jothi
Thanks for the reply. Would I be able to do the following? The 3 CSV files will contain different information. I need to poll for these 3 files and get 3 Map objects out of those 3 CSV files. I've seen the aggregation examples from the Camel documentation, but there we combine the old and the

Re: Camel Aggregator Strategy Question

2013-03-20 Thread Jothi
I have tried the following to achieve what I want. But I ran into some errors: My Route: from(file:C:\\Users\\joe\\Desktop\\csv?noop=true). unmarshal().csv().process(new RefDataProcessor()).to(direct:Process); from(file:C:\\Users\\joe\\Desktop\\csv2?noop=true).

Re: Camel Aggregator Strategy Question

2013-03-20 Thread Jothi
I modified my route to look like below: from(file:C:\\Users\\joe\\Desktop\\csv?noop=true).setHeader(isBuToPf, simple(true)). unmarshal().csv().process(new RefDataProcessor()).to(direct:Process);

Re: Camel Aggregator Strategy Question

2013-03-20 Thread Jothi
Claus, Thanks for pointing to the Javadoc. In fact, I started out blind with a very little idea on how an aggregation would work. But after working my way through the above exercise, I got a good hold of it. In fact, I made the mistake of having my aggregation logic in a processor. I moved them