Is there a way I can make the two work?  What happens is that when I do 
ApplicationContextRegistry but wants to access through jndi it won’t work, if I 
do the JndiRegistry, it would not resolve all my routeContextRef.  My 
camel-context looks like:

        <routeContext id=“template" 
xmlns="http://camel.apache.org/schema/spring";>
                <route>
                        <from uri=“vm:from" />
                                <bean ref=“java:app/TestJndi"/>
                        <to uri=“vm:to" />
                </route>
        </routeContext>


        <camelContext id=“id" xmlns="http://camel.apache.org/schema/spring";>
                <routeContextRef ref=“template" />
        </camelContext>

I would like to use camel simply for routing then use my beans for 
transformation.  Am I going at this the wrong way?  Let me know.  Thanks in 
advance.

Alex

Reply via email to