activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Posta <christian.po...@gmail.com>
Subject Re: Activemq Camel MongoDB connection
Date Sat, 07 Sep 2013 18:24:57 GMT
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 <vatsal1212@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&amp;collection=camel&amp;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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message