On Tue, Dec 13, 2011 at 9:32 AM, Willem Jiang <[email protected]> wrote:
> On Tue Dec 13 16:21:14 2011, focaldi wrote:
>>
>> Hi I am using Activemq 5.5.1 and I wanna deploy my camel application what
>> it
>> is adding dynamic routes and some datasource registry. But I couldnt add
>> datasources to camel instance that provided by Active MQ. If I would use
>> "camelContext = new DefaultCamelContext(registry);", I can register to
>> camel
>> context but then there are two Camel Instance in tomcat server.Am I right?
>
>
> Did you also use spring configuration file to create another the camel
> context?
>
> I will be OK if you there are more than one CamelContext in the ActiveMQ
> instance.
> You just need to make sure the routes don't consumer the same queue.
>
>
>> If I am right then how can I add datasources (JndiRegistry) to camel
>> instance that provided by Active MQ???Pls help me. Thanks
>
>
> You can bind the datasource with a name and instance into the registry.
> If you are using spring configuration, it is easy to setup it in spring.
>

I think you should also be able to drop a jndi.properties in the root
of your classpath, if you deploy Camel as a WAR in tomcat.
And in that jndi.properties you specify the JNDI stuff to link to the
JNDI registry in Tomcat.

Its standard from JNDI. Camel just creates a new InitialContext()


>>
>>
>>
>> --
>> View this message in context:
>> http://camel.465427.n5.nabble.com/Deploy-Camel-project-to-Activemq-tp5070710p5070710.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>
>
>
> --
> Willem
> ----------------------------------
> FuseSource
> Web: http://www.fusesource.com
> Blog:    http://willemjiang.blogspot.com (English)
>        http://jnn.javaeye.com (Chinese)
> Twitter: willemjiang Weibo: willemjiang



-- 
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to