2008/12/3 Franklin Antony <[EMAIL PROTECTED]>:
>
> Thanks a lot.
> Just some more things.. Where exactly has the spring services need to be
> called or injected ?
You can pop them in your Spring XML or Java Config. If you prefer you
can use beanRef(String beanName) to refer to named bean in Spring /
JNDI etc.
> Also assume in this route
>
> --from("file://C://test//from").bean(MyClass,
> --"myMethod").to("file://C://test//to");
>
> Assume MyClass having myMethod can log to the database , since the message
> payload is received in MyClass. Now myMethod generates a Random Unique name
> for the file and log it into the database.
>
> How can the output (file://c://test/to) directory know what is the new name
> of the file ?
See the file endpoint for the headers you can specify to customize its
behaviour...
http://activemq.apache.org/camel/file.html
--
James
-------
http://macstrac.blogspot.com/
Open Source Integration
http://fusesource.com/