The webconsole is not picking your routes because you're not telling it to :D
If you only change the packaging of your pom to war and add the camel-web
dependency, 
the application context will load a provided sample applicationContext.xml,
but if you already provide a web application folder structure, and drop your
own applicationContext.xml file in the WEB-INF directory, then your routes
will be taken in account as the application is loaded.
As James said if you use package-scan in your xml routes then all the
classes which extend RouteBuilder and specify the right packages, you'll be
able to load your DSL based routes.

this link is relevant:
http://camel.apache.org/tutorial-on-using-camel-in-a-web-application.html



willem.jiang wrote:
> 
> 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/
>>>
>>>
>> 
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Web-Console-configuration-tp26878983p26905546.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to