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.

Reply via email to