Skip to content

couldn't data import from remote mongo cluster #23

@sarankani

Description

@sarankani

I tried to connect my remote mongo server and i gave inbound rules permission for 27017

I couldn't import data from my mongo cluster.

I checked my primary db server i got this following error.
2018-11-20 06:08:32.915 INFO (Thread-27) [ x:businesses] o.m.d.connection Closed connection [connectionId{localValue:136, serverValue:72}] to xx.xxx.xx.xxx:27017 because the pool has been closed.

My data-config.xml
<dataConfig> <dataSource name="MongoSource" type="MongoDataSource" host="xx.xxx.xx.xxx" database="mydbname" username="xxxxxx" password="xxxxxx" /> <document name="import"> <entity processor="MongoEntityProcessor" datasource="MongoSource" transformer="MongoMapperTransformer" collection="users" name="users" query=""> <field column="_id" name="_id" mongoField="_id" /> <field column="id" name="id" mongoField="_id" /> <field column="name" name="j_name" mongoField="name" /> ............

is there any option to use mongo connection uri like mongodb://localhost1:27017,localhost2:27017,localhost3:27017/mydbname?readPreference=nearest&replicaSet=rs01

Please anybody help me. Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions