简体   繁体   English

WSO2 DSS对mongodb 3.xx的支持

[英]WSO2 DSS support for mongodb 3.x.x

I was trying to incorporate WSO2 DSS 3.5.0 with Mongodb 3.2.1; 我试图将WSO2 DSS 3.5.0与Mongodb 3.2.1合并;

I found out that the functions exposed by the .dbs file are very limited compared to the mongo shell 我发现与mongo shell相比,.dbs文件公开的功能非常有限

for example: 例如:

the famous 著名的

db.collection.FindAndModify() 

is not supported; 不支持;

nested usage of mongodb shell command as following mongodb shell命令的嵌套用法如下

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

can not be parsed 无法解析

I googled around and found a ds-connector-mongodb (with mongo-java-driver-2.9.0, and jongo 0.3) on Github 我在Google上四处搜寻,并在Github上找到了ds-connector-mongodb (带有mongo-java-driver-2.9.0和jongo 0.3)

I checkd the DSS 3.5.0 bundles under "/repository/components/plugins", and found "mongo-java-driver_3.0.0.wso2v2.jar" ... 我在“ / repository / components / plugins”下检查了DSS 3.5.0捆绑软件,发现“ mongo-java-driver_3.0.0.wso2v2.jar” ...

I am totally confused about how mongodb is supported on WSO2 DSS 3.5 我对WSO2 DSS 3.5如何支持mongodb感到非常困惑

Had the "ds-connector-mongodb" been deprecated? “ ds-connector-mongodb”是否已被弃用? or had there it been a new structure/frame or what? 还是有一个新的结构/框架或什么?

not to mention there were compatibility problems between the 2.xx and 3.xx of mongo-java-drive ... 更不用说mongo-java-drive的2.xx和3.xx之间存在兼容性问题...

please advice thanks 请指教谢谢

For mongodb support the currently supported operations are available under MongoOperationLabels in [2] for other specific operations such as "db.collection.FindAndModify() custom operations will have to be written extending the current code base by extending[1] 对于mongodb支持,当前支持的操作在[2]中的MongoOperationLabels下可用,用于其他特定操作,例如“ db.collection.FindAndModify(),必须编写自定义操作,方法是通过扩展[1]扩展当前代码库

[1] https://github.com/wso2/wso2-dss-connectors/blob/master/mongodb/src/main/java/org/wso2/dss/connectors/mongodb/MongoDBDataSource.java [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 [2] https://github.com/wso2/wso2-dss-connectors/blob/master/mongodb/src/main/java/org/wso2/dss/connectors/mongodb/MongoDBDSConstants.java

The currently available operations are as below COUNT, DROP, FIND, FIND_ONE, INSERT, REMOVE, UPDATE 当前可用的操作如下COUNT,DROP,FIND,FIND_ONE,INSERT,REMOVE,UPDATE

The documentation[3] explains how a data source can be created using the WSO2 Data Services Server. 文档[3]解释了如何使用WSO2数据服务服务器创建数据源。 Hear please note that the Servers can be specified as a comma separated list of server hosts and ports as: "localhost" - "125.10.5.3, 125.10.5.4" - "192.168.3.1:27017, 192.168.3.2:27017" 请注意,可以将服务器指定为以逗号分隔的服务器主机和端口列表:“ localhost”-“ 125.10.5.3,125.10.5.4”-“ 192.168.3.1:27017,192.168.3.2:27017”

The Auto Connect Retry is used to controls whether or not to connect. 自动连接重试用于控制是否连接。 when the system retries to connect automatically. 系统重试自动连接时。

You may also find [4] which is a sample that explains how operations such as createCollection can be used 您可能还会发现[4],它是一个示例,解释了如何使用诸如createCollection之类的操作

[4] https://docs.wso2.com/display/DSS320/MongoDB+Sample [4] https://docs.wso2.com/display/DSS320/MongoDB+Sample

[3] https://docs.wso2.com/display/DSS320/MongoDB regards,shavantha [3] https://docs.wso2.com/display/DSS320/MongoDB问候,shavantha

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将 Apache Camel 2.xx 迁移到 3.xx - Migrating Apache Camel 2.x.x to 3.x.x Spring 3.xx MVC JSP组合框问题 - Spring 3.x.x MVC jsp combobox trouble 使用 javaclient 从 3.xx 到 5.xx 的 hazelcast 迁移 - hazelcast migration from 3.x.x to 5.x.x using javaclient 从 onesignal 3.xx 更新到 4.xx sdk 时出错 - Error updating from onesignal 3.x.x to 4.x.x sdk WSO2 DSS错误:javax.xml.stream.XMLStreamException:无效的凝视元素 - WSO2 DSS error: javax.xml.stream.XMLStreamException: Invalid Staring element 我将此查询发送到postgres数据库时,WSO2 DSS无法正常工作,显示错误 - WSO2 DSS not working properly while i am sending this query in to postgres database its showing errors 如何从另一个Java应用程序运行iReport-nb 3.xx? - How to run iReport-nb 3.x.x from whithin another java application? Spring Interceptor 与 Spring sleuth 3.xx 的 afterCompletion 方法具有不同的 traceId - Spring Interceptor has different traceId for afterCompletion method with Spring sleuth 3.x.x 如何通过DSS获取X509证书的吊销状态? - How to get revocation status of an X509 certificate with DSS? WSO2 Identity Server是否支持Java 5(JDK 1.5)? - Will WSO2 Identity Server support Java 5( JDK 1.5)?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM