java - WSO2 DSS support for mongodb 3.x.x -


i trying incorporate wso2 dss 3.5.0 mongodb 3.2.1;

i found out functions exposed .dbs file limited compared mongo shell

for example:

the famous

db.collection.findandmodify()  

is not supported;

nested usage of mongodb shell command following

db.collection.remove({_id: $bindata(3, #)} 

can not parsed

i googled around , found ds-connector-mongodb(with mongo-java-driver-2.9.0, , jongo 0.3) on github

i checkd dss 3.5.0 bundles under "/repository/components/plugins", , found "mongo-java-driver_3.0.0.wso2v2.jar" ...

i totally confused how mongodb supported on wso2 dss 3.5

had "ds-connector-mongodb" been deprecated? or had there been new structure/frame or what?

not mention there compatibility problems between 2.x.x , 3.x.x of mongo-java-drive ...

please advice thanks

for mongodb support supported operations available under mongooperationlabels in [2] other specific operations such "db.collection.findandmodify() custom operations have written extending current code base extending[1]

[1]https://github.com/wso2/wso2-dss-connectors/blob/master/mongodb/src/main/java/org/wso2/dss/connectors/mongodb/mongodbdatasource.java

[2] https://github.com/wso2/wso2-dss-connectors/blob/master/mongodb/src/main/java/org/wso2/dss/connectors/mongodb/mongodbdsconstants.java

the available operations below count, drop, find, find_one, insert, remove, update

the documentation[3] explains how data source can created using wso2 data services server. hear please note servers can specified comma separated list of server hosts , ports as: "localhost" - "125.10.5.3, 125.10.5.4" - "192.168.3.1:27017, 192.168.3.2:27017"

the auto connect retry used controls whether or not connect. when system retries connect automatically.

you may find [4] sample explains how operations such createcollection can used

[4]https://docs.wso2.com/display/dss320/mongodb+sample

[3]https://docs.wso2.com/display/dss320/mongodb regards,shavantha


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -