On Tue, Aug 26, 2014 at 2:03 PM, Andrei Stoica <
andrei.ionut.stoica@> wrote:
>
>         public void setConnectionBean(MongoStep step) throws
> UnknownHostException{
>
>                 MongoClientURI uri = new MongoClientURI(getUri());
>                 mongo = new MongoClient(uri);
>         }
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/mongoDB-uri-tp5755565p5755704.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>


the getUri() method will return a custom URI that is passed to the
MongoClient. I construct my URI based on other objects and I didn't consider
it necessary to provide the implementation of the getUri().

Basically when I start my app, an object is created with some values
provided by the UI and then I use that object to create my URI.



--
View this message in context: 
http://camel.465427.n5.nabble.com/mongoDB-uri-tp5755565p5755716.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to