RE: Need help

2014-08-15 Thread Ravindra.Godbole
It looks like your main process is terminating after consuming the message. If you are using spring dsl, here is how you can keep it running for ever. Main referred here is org.apache.camel.spring.Main. Refer here for more detailed explanation.

RE: jetty component

2014-08-10 Thread Ravindra.Godbole
Hi No need to install jetty server. Just include the jetty component and deploy the build. Follow this page in detail for instructions about writing routes / ssl support / etc. https://camel.apache.org/jetty.html You can run it in standalone mode.

RE: TokenizeXML by value from message header

2014-07-29 Thread Ravindra.Godbole
As of now tokenizer does not evaluate properties/expression, so you have to pass string value. I am curious to know if one can refer/access current exchange object while defining the route. If that is possible then something like this will work in your case.

RE: Camel Java routes using Timer firing only once

2014-07-25 Thread Ravindra.Godbole
That is because the expression builder evaluates string to actual values during route definition. If you use the following syntax you will get new time for every timer run. from(timer://foo?fixedRate=trueperiod=1000).transform(simple(Time is

RE: Camel Java routes using Timer firing only once

2014-07-24 Thread Ravindra.Godbole
It looks like in the sample code which starts camel context, you are also stopping the context. If you want timer to run continuously, your context should always be up and running as well. Can you also add a very long sleep command just to ensure that and test the same ? -Ravi

RE: Problem encrypting the password using Camel Jasypt component

2014-07-24 Thread Ravindra.Godbole
Enhancing the exception logging will help developer in such cases. If detailed message is not provided by the exception, name of the exception should be printed in logs . In this case FailedToCreateRouteException should check if cause.getMessage() is not null. In case it is null, name of

RE: Camel Java routes using Timer firing only once

2014-07-23 Thread Ravindra.Godbole
Body of timer is null hence it will fail on the first message. Try following and it will work as expected. You can use timer without spring. from(timer://foo?fixedRate=trueperiod=1000).setBody(body().append(Time is + new Date())).to(file:target/reports/?fileName=sync.txt);

RE: How to get all the properties in the exchange in spring configuration

2014-07-21 Thread Ravindra.Godbole
Naveen You can access specific exchange property like this in the log expression : ${property.CamelCreatedTimestamp} but currently ${properties} does not evaluate to any expression for simple language. Clause, ExpressionBuilder already has a function but it is not used to build functions

RE: Camel automatic route triggers upon server startup

2014-07-19 Thread Ravindra.Godbole
Can you please share the route details ? Did you refer the following link ? http://camel.apache.org/activemq-camel-tomcat.html -Ravi From: mikes300 [mikes...@yahoo.com] Sent: Saturday, July 19, 2014 8:16 AM To: users@camel.apache.org Subject: Camel

RE: Problem encrypting the password using Camel Jasypt component

2014-07-11 Thread Ravindra.Godbole
Hi You can check my example at the following URL. Refer route xml and mail.properties on how encrypted passwords are used. That might help. https://github.com/godbolerr/camel-example-mail/tree/master/src/main/resources -Ravi From: arvind

RE: File is not moved to .camel folder once it is processed

2014-07-10 Thread Ravindra.Godbole
It seems your filter code is locking the file which is preventing camel from deleting the same. Do you see any .camelLock file created in the directory ? -Ravi -Original Message- From: sakchakravarthi [mailto:ajit.kalyan.chakravar...@gmail.com] Sent: Thursday, July 10, 2014 2:54 PM To:

RE: File is not moved to .camel folder once it is processed

2014-07-08 Thread Ravindra.Godbole
Can you share the complete route please ? -Ravi -Original Message- From: sakchakravarthi [mailto:ajit.kalyan.chakravar...@gmail.com] Sent: Tuesday, July 08, 2014 12:58 PM To: users@camel.apache.org Subject: File is not moved to .camel folder once it is processed Hi I have a file route

RE: How to Add Double quote at the beginning of the column using Camel Bindy

2014-07-02 Thread Ravindra.Godbole
Hi Have you tried following option ? @CsvRecord ( separator = ,,generateHeaderColumns=true,quoting=true) By deafult, is the quote value. This will take care of all the values with quotes with ',' as seperator. If you also want same behavior with column headers, you have to do something like

RE: Restlet and mesaage body null based on content type

2014-07-02 Thread Ravindra.Godbole
1. Can you change System A to send content-type just like system B [application/x-www-form-urlencoded] 2. If that is possible, you can access the form variables thru header values of exchange in your custom bean, instead of using getBody.. -Ravi From:

RE: New to Camel and also needing to come up to speed on Java again

2014-06-22 Thread Ravindra.Godbole
Rick You can find camel mail example at the following location. https://github.com/godbolerr/camel-example-mail -Ravi -Original Message- From: Rick [mailto:rick0...@hotmail.co.uk] Sent: Sunday, June 22, 2014 1:48 PM To: users@camel.apache.org Subject: New to Camel and also needing to

RE: Camel configuration to pick up file from Shared location and remote file location

2014-06-12 Thread Ravindra.Godbole
Ajit What do you mean by Remote File Location. Is it on different machine which has to be accessed thru FTP/SFTP ? Please elaborate. From: sakchakravarthi [ajit.kalyan.chakravar...@gmail.com] Sent: Friday, June 13, 2014 10:59 AM To:

RE: FTP endpoint on error

2014-05-12 Thread Ravindra.Godbole
Can you share the route specifics you currently have ? -Ravi From: blacar [bcr...@gmail.com] Sent: Monday, May 12, 2014 4:32 PM To: users@camel.apache.org Subject: FTP endpoint on error Hi guys, I hope you can help me. I want to create a route that read

RE: File rotation

2014-05-12 Thread Ravindra.Godbole
Have you explored file:name option ? You can add processor to the route which can set this option based on the content size written to existing file so far. When limit is reached assign new value to the camelFileName and reset the count to calculate content size in processor. For example:

RE: Pass filename from MQ Message to pollenrich or file endpoint

2014-05-11 Thread Ravindra.Godbole
You have to provide filename with some value. http://camel.apache.org/content-enricher.html -Original Message- From: bharathramesh [mailto:bharathram...@hotmail.com] Sent: Friday, May 09, 2014 3:44 PM To: users@camel.apache.org Subject: Pass filename from MQ Message to pollenrich or

RE: how do I check conditions in XML DSL

2014-04-23 Thread Ravindra.Godbole
Does your file has only one line with csv seperated values ? Do you want whole file to be transferred to the other directory based on logic ? What if two conditions are satisfied on one line ? value1=A and value2=B . Here is the example you can start with ... you can use more features of

RE: URI encoding is giving me problems

2014-04-22 Thread Ravindra.Godbole
Claus Even after adding RAW the output of key still comes as RAW(+) and not only + as expected. addParameter method of URISupport class should strip out the RAW() and just retain + against passwd. Here is what I tried. EndpointConfiguration conf =

RE: Camel JAXB - ArrayList of Objects to XML

2014-04-18 Thread Ravindra.Godbole
You can definitely do it. Create route like this : protected RouteBuilder createRouteBuilder() throws Exception { return new RouteBuilder() { JAXBContext context = JAXBContext.newInstance(new Class[]{Orders.class});

RE: Send response to file request?

2014-04-11 Thread Ravindra.Godbole
Look at the following URL which has various options for request-reply over jms . http://camel.apache.org/jms.html From: scottmiles [motgu...@gmail.com] Sent: Friday, April 11, 2014 11:23 PM To: users@camel.apache.org Subject: Send response to file

RE: Can How Apache CAMEL help in this enterprise integration usecase?

2014-04-06 Thread Ravindra.Godbole
Hi 1. You can use processor which will enable you to handle message thru OrderService. [ http://camel.apache.org/processor.html ] 2. You can post to new routes based on the contents. 4. Contents of the body irrespective of the type of channel is available for processing as a ${in.body}. Type

RE: Camel XPath....Parsing a part of message Body...

2014-04-05 Thread Ravindra.Godbole
Try following. from uri=jms:queue:Q.activemq1/ setBody xpath/Customer/Order/id/text()/xpath /setBody setBody simpleOrder with id ${in.body} received /simple /setBody to uri=jms:queue:Q.activemq2/ - Ravi From: npa [npa.c...@gmail.com]

RE: how to set up ftp remote directory dynamically

2014-04-03 Thread Ravindra.Godbole
Are you trying to dynamically change directory from where you want to download files ? It seems it is not possible for to uri in ftp component. You might want to use filter which can specify the pattern to select for download . Something like ... public class MyFileFilterT implements

RE: Does simple expression support operator precedence by using parenthesis or bracket?

2014-03-27 Thread Ravindra.Godbole
Parenthesis '(' is not supported by simple language. From: bonnahu [bonn...@gmail.com] Sent: Friday, March 28, 2014 2:36 AM To: users@camel.apache.org Subject: Does simple expression support operator precedence by using parenthesis or bracket? hey guys,

RE: Does simple expression support operator precedence by using parenthesis or bracket?

2014-03-27 Thread Ravindra.Godbole
You can use beanshell language to achieve the same result. Ensure that you have h_event and h_state present in the headers with some values otherwise NPE will be thrown. filter language language=beanshell (

RE: download files for each xml entry

2014-03-25 Thread Ravindra.Godbole
Here is what you can do . from(direct:start) .to(http://localhost/Files.xml;) .split(xpath(//file/text())).parallelProcessing() .process(new Processor() {

RE: camel route enable/disable based on configuration

2014-03-24 Thread Ravindra.Godbole
Do you want to start/stop routes when camel app comes up or decide at runtime when to stop the route ? You can use JMX to stop a specific route when app is up and running. Regards Ravi -Original Message- From: chaij [mailto:jin.c...@indigoarc.com] Sent: Tuesday, March 25, 2014 10:54

RE: Sending a string response from a route...

2014-03-23 Thread Ravindra.Godbole
This is possible. route from uri=jetty:http://localhost:/camelServlet/abc?; / transform constantHi/constant /transform /route -Ravi

RE: File Exists

2014-01-31 Thread Ravindra.Godbole
As Claus has pointed out in the earlier thread, depending on the configuration, listing of files is passed on to the filter for processing. Any new file will be picked up in the next iteration. -Ravi From: JKemp [kemp.ja...@gmail.com] Sent: Saturday,

RE: File Exists

2014-01-30 Thread Ravindra.Godbole
If custom filter is written then it will return true when both files are present and then first file will be picked up but what about the second file. During processing of second file, custom filter will return false ? Need to check how it behaves ? -Original Message- From: Claus

RE: Routing on REST URL patterns

2014-01-28 Thread Ravindra.Godbole
Instead of using choice you can use recipientList and then build the URL on the fly. This will take care of at least resolving which REST service to invoke. Your route will look something like this. from(servlet:///?matchOnUriPrefix=true) .process(customProcessor)

RE: Content based routing

2014-01-27 Thread Ravindra.Godbole
You can use dynamic router feature of camel. Read the documentation carefully as not returning null means it will loop infinitely. http://camel.apache.org/dynamic-router.html -Original Message- From: Muhzin [mailto:rmuh...@gmail.com] Sent: Monday, January 27, 2014 2:51 PM To:

RE: MessageHelper.dumpAsXml()

2014-01-27 Thread Ravindra.Godbole
Bruce Do you want to manually inspect files and copy files to some other area for replay ? Are you not using any messaging channel queue to store messages ? You can use dumpAsXml to inspect the content but use the messaging channel queue again to replay the messages. Some custom filter can

RE: Pros and cons of using choice as opposed to having separate endpoints

2014-01-27 Thread Ravindra.Godbole
can you provide following. 1. How many routes you have 2. Does each route have special processing ? 3. Does routing logic change frequently ? 4. Is any route used more than other which requires special configuration ? - Ravi From: Shing Hing Man

RE: Tracer per route without explicitly turning off tracing

2014-01-26 Thread Ravindra.Godbole
You can set the traceFilter for tracer which is nothing but defining predicate. Custom predicate can be defined as you want. It can be just one string or pattern of strings[destinations] you want to trace. This is the solution I can think of in the current context. Tracer tracer = new

RE: Convert a Spring xml route string in a RouteDefinition

2014-01-26 Thread Ravindra.Godbole
You might want to have a look at the following sample. It does have namespace defined for root element. You can build this string as you like with more child routes. CamelContext context = new DefaultCamelContext(); context.setTracing(true);

RE: Http4 Set Header Content-Type not passing through to the HTTP Request

2014-01-24 Thread Ravindra.Godbole
Your second logging will log headers from the response sent by the http4 invocation. I am able to see the values and these are not blanked out. Tried out with following path. from(timer://foo?fixedRate=truedelay=0period=1000)

RE: Apache Camel and Jboss FUSE IDE

2014-01-21 Thread Ravindra.Godbole
Once you install Fuse IDE, you can create Camel specific projects and also create Camel Context xml. -Original Message- From: gadido30 [mailto:gadid...@gmail.com] Sent: Wednesday, January 22, 2014 11:36 AM To: users@camel.apache.org Subject: Apache Camel and Jboss FUSE IDE Hi All, I

Re: Passing value from one bean to one bean

2013-12-13 Thread Ravindra.Godbole
Claire cmth...@gmail.com wrote: Hi, I have been trying to pass one value from one bean to one bean. *bean id=test ref=Process method=readFilePath('test1')/* // this bean return test1. So I would like to pass that value (test1) into another bean. I wonder if there is a way I can pass that

Re: Passing value from one bean to one bean

2013-12-13 Thread Ravindra.Godbole
Claire cmth...@gmail.com wrote: Hi, I have been trying to pass one value from one bean to one bean. *bean id=test ref=Process method=readFilePath('test1')/* // this bean return test1. So I would like to pass that value (test1) into another bean. I wonder if there is a way I can pass that

Re: Camel-maven-plugin 2.12.1 Problem

2013-12-13 Thread Ravindra.Godbole
atiato tangoatia1...@gmail.com wrote: Kind reminder ... -- View this message in context: http://camel.465427.n5.nabble.com/Camel-maven-plugin-2-12-1-Problem-tp5744328p5744713.html Sent from the Camel - Users mailing list archive at Nabble.com. This e-mail and any files transmitted with it

Re: Camel-maven-plugin 2.12.1 Problem

2013-12-13 Thread Ravindra.Godbole
atiato tangoatia1...@gmail.com wrote: Kind reminder ... -- View this message in context: http://camel.465427.n5.nabble.com/Camel-maven-plugin-2-12-1-Problem-tp5744328p5744713.html Sent from the Camel - Users mailing list archive at Nabble.com. This e-mail and any files transmitted with it

Re: Camel-maven-plugin 2.12.1 Problem

2013-12-13 Thread Ravindra.Godbole
atiato tangoatia1...@gmail.com wrote: Kind reminder ... -- View this message in context: http://camel.465427.n5.nabble.com/Camel-maven-plugin-2-12-1-Problem-tp5744328p5744713.html Sent from the Camel - Users mailing list archive at Nabble.com. This e-mail and any files transmitted with it

RE: xpath filter question

2013-11-14 Thread Ravindra.Godbole
Can you share the sample xml message ? Does it have namespace in it ? From: John Dubchak [j...@johndubchak.com] Sent: Friday, November 15, 2013 1:42 AM To: users@camel.apache.org Subject: xpath filter question Hi, I am trying to create a JavaDSL route