Re: Problem from Java DSL to Spring DSL

2013-05-15 Thread Gary Liu
Thanks Claus! The following code works. request-${date:now:-MM-dd-HHmmssSSS} I still don't understand how the following Java DSL works, i mean "transform" part : from("cxf:bean:reportIncident") .co

Re: Problem from Java DSL to Spring DSL

2013-05-14 Thread Gary Liu
Thanks William! That works. Now, my transform part is still not working. Any sugguestions? -- View this message in context: http://camel.465427.n5.nabble.com/Problem-from-Java-DSL-to-Spring-DSL-tp5732558p5732563.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Problem from Java DSL to Spring DSL

2013-05-14 Thread Gary Liu
OK. I got the set file name part work. request-${date:now:-MM-dd-HHmmssSSS} is equivalent as: setHeader(Exchange.FILE_NAME, constant("request-${date:now:-MM-dd-HHmmssSSS}")) -- View this message in context: h

Re: Problem from Java DSL to Spring DSL

2013-05-14 Thread Gary Liu
When I test using soupUI with the following input: http://schemas.xmlsoap.org/soap/envelope/"; xmlns:rep="http://reportincident.example.camel.apache.org";> 111 2013-05-09 Claus Muller bla bla g...@vha.com 678-447

Problem from Java DSL to Spring DSL

2013-05-14 Thread Gary Liu
Hello, I am trying to translate the following Java DSL (This is the example from 2.10.4). The Java DSL works fine. But I after I translate to Spring DSL, several things are not working as expected. Would someone please help? Java DSL=== f

Re: Compound Predicate For Camel Route

2012-07-16 Thread Gary Liu
Thanks Claus. It works. As we are using 2.8 Camel, I use "and" like this: ${in.header.CamelHttpMethod} != 'DELETE' and ${in.header.CamelHttpPath} contains '/trans/WorkOrder' Thanks --Gary -- View this message in context: http://camel.465427.n5.nabble.com/Compound-Predicate-For-Camel-Route-tp571

Compound Predicate For Camel Route

2012-07-16 Thread Gary Liu
Hello, I need to put "AND" log into my spring based xml. Here is the snappit: Transaction Imports ${in.header.CamelHttpPath} contains '/trans/Inventory/' AND ${in.header.CamelHttpMethod} != 'DELETE'