You can use the Spring to load the Java DSL route configure() like this
<camelContext id="camel5" xmlns="http://camel.apache.org/schema/spring">
<routeBuilder ref="myBuilder" />
</camelContext>
<bean id="myBuilder"
class="org.apache.camel.spring.example.test1.MyRouteBuilder"/>
And you can find more information here[1]
[1] http://camel.apache.org/spring.html
Willem
mistrz wrote:
So I have to define my routes explicitly in Spring? If I define my routes
inside configure() the Web Console will not recognize them?
James.Strachan wrote:
2009/12/21 mistrz <[email protected]>:
How do I configure Web Console to look at my routes?
The web console starts by loading the Spring applicationContext.xml
file in WEB-INF. Put whatever routes you want in there (or include
them from that spring XML file).
Is there a parameter to
define the broker uri?
(Currently I have tcp://localhost:61616).
Configure the activemq component in the spring XML file.
There's an example WAR using camel-web which uses ActiveMQ and creates
an embedded broker here...
http://svn.apache.org/repos/asf/camel/sandbox/components/camel-activemq-web/
--
James
-------
http://macstrac.blogspot.com/
Open Source Integration
http://fusesource.com/