Hi Glad its working.
The spring property stuff is known, and we have a FAQ entry: http://activemq.apache.org/camel/how-do-i-use-spring-property-placeholder-with-camel-xml.html It's actually some limitations in Spring. Should be on the roadmap for Spring 3.0. There is a JIRA in spring filed by James Strachan about this. Med venlig hilsen Claus Ibsen ...................................... Silverbullet Skovsgårdsvænget 21 8362 Hørning Tlf. +45 2962 7576 Web: www.silverbullet.dk -----Original Message----- From: GLD [mailto:[EMAIL PROTECTED] Sent: 24. oktober 2008 10:22 To: [email protected] Subject: RE: CAMEL Servlet Endpoint Thanks a lot Claus, I can inject my data received from my servlet. I just notice a bug but I don't know if it comes from spring or camel. I tried to use a spring placeholder in the cal tag "to" <to uri=${my.uri} /> The resolution has not been done. It seems to be because "to" is not a spring tag but a camel tag. (It works in spring tags) I think I found a work around : I created a EnpointHolderClass that contains - a constructor with args CamelContext and Uri (string) - a private member Endpoint and its getter and setter. in spring, I declare my bean myEndPointHolder (class EndPointHolder), and use spring <constructor-args> to set the uri and camel context The contructor performs a camelContext.getEndpoint(uri); I declare an other bean id="myEndpoint" using attributes Factory-bean name="myEndPointHolder" and factory-method="getEndpoint" in the <to> tag, I can refer my endpoint <to ref="myEndpoint"> GLD. Claus Ibsen wrote: > > Hi > > You can send it to the from very easily like this > > > camelProducerTemplate.sendBody("direct:foo", "Hello World"); > > The first parameter is the URI of the endpoint, and the 2nd parameter is > the payload to send. > > If you want/expect a reply, then use requestBody instead: > > Object reply = camelProducerTemplate.requestBody("direct:foo", "Hello > World"); > > > > Med venlig hilsen > > Claus Ibsen > ...................................... > Silverbullet > Skovsgårdsvænget 21 > 8362 Hørning > Tlf. +45 2962 7576 > Web: www.silverbullet.dk > > -- View this message in context: http://www.nabble.com/CAMEL-Servlet-Endpoint-tp20085692s22882p20146182.html Sent from the Camel - Users mailing list archive at Nabble.com.
