2017-05-03 27 views
0

我使用的是Apache Polygene(Qi4j)2.1,我試圖使用MongoDB實體存儲與多個節點和replicaSet。Apache多基因與MongoDB EntityStore連接

我在我的mongodb.booking.store.properties文件當前配置爲:

hostname=localhost 
port=27017 
nodes=192.168.1.100:27017, 192.168.1.101:27017, 192.168.1.102:27017 
database=example 
collection=example 

我得到以下錯誤:

org.qi4j.api.value.NoSuchValueException: Could not find any visible ValueComposite of type [com.mongodb.ServerAddress] in module [config] 

但是,當我從上面的文件中刪除nodes屬性,那麼它的所有作品罰款和與mongo的連接是成功的。

如何使用多個節點和replicaSet?

回答