You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by vatsal12 <va...@gmail.com> on 2013/09/07 01:25:52 UTC
Activemq Camel MongoDB connection
Hi,
I am newbie with ActiveMQ and configurations.
I am trying to connect Mongodb via camel route and insert operation by using
this component.
http://camel.apache.org/mongodb.html
Can anyone please guide me how to proceed with that.
Configuration that i tried:
<route>
<description>Activemq Camel Mongodb</description>
<from uri="activemq:queue:TO"/>
<to
uri="mongodb:myDb?database=try_1&collection=camel&operation=insert"
/>
</route>
and bean defined as
<bean id="myDb" class="com.mongodb.Mongo">
<constructor-arg index="0">
<bean class="com.mongodb.MongoURI">
<constructor-arg index="0"
value="admin:password@localhost:43358/try_1"/>
</bean>
</constructor-arg>
</bean>
Thanks
--
View this message in context: http://activemq.2283324.n4.nabble.com/Activemq-Camel-MongoDB-connection-tp4671276.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Activemq Camel MongoDB connection
Posted by Christian Posta <ch...@gmail.com>.
Probably better to ask this on the Camel mailing list.
But before you do, figure out exactly what your question is and explain
what you've tried and what didn't work (ie, exceptions? )
On Fri, Sep 6, 2013 at 4:25 PM, vatsal12 <va...@gmail.com> wrote:
> Hi,
>
> I am newbie with ActiveMQ and configurations.
>
> I am trying to connect Mongodb via camel route and insert operation by
> using
> this component.
>
> http://camel.apache.org/mongodb.html
>
> Can anyone please guide me how to proceed with that.
>
> Configuration that i tried:
>
> <route>
> <description>Activemq Camel Mongodb</description>
> <from uri="activemq:queue:TO"/>
> <to
> uri="mongodb:myDb?database=try_1&collection=camel&operation=insert"
> />
> </route>
>
> and bean defined as
>
> <bean id="myDb" class="com.mongodb.Mongo">
> <constructor-arg index="0">
> <bean class="com.mongodb.MongoURI">
> <constructor-arg index="0"
> value="admin:password@localhost:43358/try_1"/>
> </bean>
> </constructor-arg>
> </bean>
>
>
> Thanks
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Activemq-Camel-MongoDB-connection-tp4671276.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
--
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta