Hello,
Any suggestions / pointers ?
Regards,
-Yogesh
--
View this message in context:
http://camel.465427.n5.nabble.com/configuring-Camel-with-XML-DSL-and-Guice-in-tomcat-tp5760657p5760999.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Apologies for the delayed response ... I would like to understand how can
Guice be used in following case : In my sample route below
?xml version=1.0 encoding=UTF-8?
routes xmlns=http://camel.apache.org/schema/spring;
route
from uri=rest:///get:payment/{paymentType}/
process
I don’t think you need to dependency injection in your XML DSL, as we just look
up the instance from the registry. Can you give an example that you need to use
Guice to do the DI work?
--
Willem Jiang
Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
Any thoughts on this?
--
View this message in context:
http://camel.465427.n5.nabble.com/configuring-Camel-with-XML-DSL-and-Guice-in-tomcat-tp5760657p5760679.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Here is my understanding of things that needs to be done if Guice - Camel and
XML DSL have to work together
1. create a ServletContextListener which would do the following
a. extracts Routes from the XML
b. create a JNDI Registry instance (GuiceyFruit implementation)
c.