Re: Problem from Java DSL to Spring DSL

2015-07-10 Thread MC
Thank you Claus. -- View this message in context: http://camel.465427.n5.nabble.com/Problem-from-Java-DSL-to-Spring-DSL-tp5732558p5769102.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Problem from Java DSL to Spring DSL

2015-07-09 Thread Claus Ibsen
Hi No headerName is a string attribute and cannot be dynamic. You can use a property placeholder though but its only resolved once during route creation. Currently its only the constants from Exchange that are supported such as Exchange.FILE_NAME. On Thu, Jul 9, 2015 at 8:02 PM, MC <2320...@gm

Re: Problem from Java DSL to Spring DSL

2015-07-09 Thread MC
Hi Claus, I replied to this question a couple of days ago with a similar question, but I am not sure why it is not showing up. Thats why I posting it again. I apologize if it is duplicate. Is it possible to use a random Java Constant or enum in headerName of in spring dsl. I tied with simple and

Re: Problem from Java DSL to Spring DSL

2013-05-17 Thread Claus Ibsen
You need to create a OutputReportIncident as the response, you can do this from xml with And then in the Camel xml route, then refer to this bean as the body ref:ok On Wed, May 15, 2013 at 3:28 PM, Gary Liu wrote: > Thanks Claus! The following code works. > >

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 Claus Ibsen
On Wed, May 15, 2013 at 5:06 AM, Willem jiang wrote: > Hi, > > I think you cannot use the constant of Exchange.FILE_NAME directly in the > Spring DSL. > You should use the String directly like this Yes you can. The DSL has special support for that so it makes converting from java <-> xml easier.

Re: Problem from Java DSL to Spring DSL

2013-05-14 Thread Willem jiang
Hi, Can you check if you put the camel-jaxb jar into your class path? -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jn

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

Re: Problem from Java DSL to Spring DSL

2013-05-14 Thread Willem jiang
Hi, I think you cannot use the constant of Exchange.FILE_NAME directly in the Spring DSL. You should use the String directly like this request-${date:now:-MM-dd-HHmmssSSS} -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redha