title: mongo db - can't initiate Mongo with replica set
body: <p>I'm using version spring-data-mongo version 1.0.0.M4 - the latest version to this date.</p>
  
  <p>I defined my bean like this:</p>
  
  <pre><code>&lt;bean id="mongoOps" class="org.springframework.data.mongodb.core.MongoTemplate"&gt;
      &lt;constructor-arg ref="mongo" /&gt;
      &lt;constructor-arg name="databaseName" value="my_mongo" /&gt;
  &lt;/bean&gt;
  
  &lt;mongo:mongo id="mongo" replica-set="host1:27017,host2:27018,host3:27019" &gt;
      &lt;mongo:options... /&gt;
  &lt;/mongo:mongo&gt;
  </code></pre>
  
  <p>But when I start my server it try's to connect to the default host and port on my computer, this happens because in MongoFactoryBean line 93 it says:</p>
  
  <pre><code>if (host == null) {
      logger.debug("Property host not specified. Using default configuration");
      mongo = new Mongo();
  } else {...
      //do all the stuff I want to be done...
  }
  </code></pre>
  
  <p>So how can I define my Mongo with a replica-set without setting the host?</p>
  
  <p>Thank you! </p>