POSTS

Java, Mongo - Start mongo connecting to replica set

<![CDATA[ (…) import com.mongodb.MongoClient; (…) MongoClient mongo = new MongoClient(Arrays.asList( new ServerAddress(””, ), new ServerAddress(””, ), new ServerAddress(””, ))); // you may need to use: // Integer.parseInt(”) ]]>
SyntaxHighlighter.highlight();