how to route pojo in camel

2015-08-21 Thread Amar Sheth
to pass this pojo to route for some processing and ftp Pseudo Logic from("Java Pojo").Process("Some Process").to("ftp location"). My question is how do I pass the Java Pojo in from part of the camel? Regards, Amar S

Writing camel test cases for existing service without changing its endpoint to mock manually

2014-08-06 Thread Amar
Hi, I have created CXF webservice as route using Talend ESB tool and published it. Now i want to test it using camel test cases. I gone through couple of examples of using camel test cases API but there i manually included the route by changing the endpoint to mock. I want to test the existing

Re: Abstracting Routes using Components

2010-10-26 Thread Ryadh Amar
Ah I understand better now :D But the way I see it, if you could work out more complex stuff in your routes (other than setting headers), things become more interesting. But at the end of the day, this proposal will make things easier for the developer community, I think the business analyst types

Re: Abstracting Routes using Components

2010-10-25 Thread Ryadh Amar
This is a pretty neat idea, I was actually around when you were explaining your need. Thing is we are not really far from what you want to achieve if we use the bean component or if the proxy pattern is applied. It all boils down the extent to which you want to make things easier for the users. Bu

Re: How to InOut with JMs

2009-12-30 Thread Ryadh Amar
By guessing, I suppose that you're going to use the camelTemplate to send stuff to "direct:start", It is enough to do something like: ProducerTemplate camelTemplate = (ProducerTemplate)context.getBean("template"); Object returnValue = camelTemplate.requestBody("dire

The latest camel java archetype (2.1.0) is not working correctly

2009-12-23 Thread Ryadh Amar
Hello Community, When I run the following mvn archetype:generate -DarchetypeGroupId=org.apache.camel.archetypes -DarchetypeArtifactId=camel-archetype-java -DarchetypeVersion=2.1.0 -DgroupId=com.corp.projects -DartifactId=camel-jira-ws Everything looks ok, but glancing at the generated pom.xml in t

Re: Web Console configuration

2009-12-23 Thread Ryadh Amar
The webconsole is not picking your routes because you're not telling it to :D If you only change the packaging of your pom to war and add the camel-web dependency, the application context will load a provided sample applicationContext.xml, but if you already provide a web application folder struc

Re: Camel : Genrating XML FILE from the message

2009-12-17 Thread Ryadh Amar
If you are using Camel 2.1, you can use "inline templating" == from("direct:in"). setHeader("CamelVelocityTemplate").constant("Hi this is a velocity template that can do templating ${body}"). to("velocity:dummy");

Re: Camel : Genrating XML FILE from the message

2009-12-17 Thread Ryadh Amar
Use templating instead, in Camel, among the components available in Camel, try Velocity: http://camel.apache.org/velocity.html titexe wrote: > > Hello, > > I want to generate an XML File based on the fiels of the header of Message > and the body of message. > > An example of the file that i w

Re: Running Camel Examples with Maven in version 2.0.0

2009-10-15 Thread Ryadh Amar
the distribution? > > On Thu, Oct 15, 2009 at 6:52 AM, Ryadh Amar > wrote: > >> >> Hello Camel Riders, >> I wanted to tryout some of the examples bundled with the current >> downloadable distribution of Camel (2.0.0) >> Maven fails, but I have pinpointed th

Running Camel Examples with Maven in version 2.0.0

2009-10-15 Thread Ryadh Amar
Hello Camel Riders, I wanted to tryout some of the examples bundled with the current downloadable distribution of Camel (2.0.0) Maven fails, but I have pinpointed the culprit; in each example, the parent pom (which can be found in the examples directory) is referenced this way: ===

Re: Camel 2.0 Failover Questions

2009-08-18 Thread Ryadh Amar
Hi, You can use the following, using the onException construct: = onException(javax.naming.NamingException.class).maximumRedeliveries(3) .to("seda:errors");