2008/6/2 bwtaylor <[EMAIL PROTECTED]>: > > I'm embedding camel in ActiveMQ. I start activemq, which reads > $ACTIVEMQ_HOME/conf/activemq.xml . I want to use the java DSL for my routes, > using the <package> tag in activemq.xml to allow them to be discovered from > the classpath. The RouteBuilders defined there use a Registry based on the > ApplicationContext defined by the activemq.xml file, whereas I want them to > see a registry built out of an ApplicationContext that already exists, > defined by my code and spring xml files in my jars.
Why not put the <camelContext ...> <package> elements into your other spring XML file? (i.e. remove the package element from the activemq.xml) -- James ------- http://macstrac.blogspot.com/ Open Source Integration http://open.iona.com
