2009/7/10 chu_man_fu <c...@bytron.com>:
>
> I have Camel working great in ActiveMQ intergated into JBoss but only by
> modifying my activemq.xml file:
>
>   <camelContext id="camel"
> xmlns="http://activemq.apache.org/camel/schema/spring";>
>        <package>my.package.name</package>
>        <route>
>                <from uri="activemq:Q1"/>
>             <from uri="activemq:Q2"/>
>        </route>
>    </camelContext>
>    <bean id="activemq"
> class="org.apache.activemq.camel.component.ActiveMQComponent" >
>        <property name="connectionFactory">
>          <bean class="org.apache.activemq.ActiveMQConnectionFactory">
>            <property name="brokerURL"
> value="vm://localhost?create=false&amp;waitForStart=10000" />
>            <property name="userName" value="${activemq.username}"/>
>            <property name="password" value="${activemq.password}"/>
>          </bean>
>        </property>
>    </bean>
>
> How do I get camel to use package: <package>my.package.name</package>?
> I have created a package which that name but I don't know where to put it or
> how I tell camel to look at it. I am not sure where the camel context is
> started, I am guess via the ActiveMQComponent bean

This is more a question for the camel mailing lists...
http://camel.apache.org/discussion-forums.html

but you basically add <package> within <camelContext>

> I understand this is more of a Camel question but the only reason I don't
> know how to do this is because I am using Camel in an embedded broker.

everything within the <camelContext> element is exactly the same as
using Camel with Spring (i.e. outside of the broker).

-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://fusesource.com/

Reply via email to