-
1. Re: Configure Mongo DB pool connection in JBOSS
pjhavariotis Sep 27, 2016 4:49 AM (in response to gpjavi)As far as I know, MongoDB is not supported!
As you can see in the following link, MongoDB is NOT enlisted in the supported/certified configurations of JBoss EAP 7.
JBoss Enterprise Application Platform (EAP) 7 Supported Configurations - Red Hat Customer Portal
-
2. Re: Configure Mongo DB pool connection in JBOSS
doh Sep 27, 2016 9:43 AM (in response to pjhavariotis)Like Panagiotis said, Red Hat is not supported MongoDB on top of JBoss EAP but it doesn't mean not to configure MongDB technically.
You might find the way to configure as below I hope.
Configure Connect for JDBC MongoDB driver with JBoss EAP 6.4
3 ways you can connect to MongoDB from WildFly - JBoss EAP
MongoDB Data Sources - Teiid 8.8 - Project Documentation Editor
-
3. Re: Configure Mongo DB pool connection in JBOSS
mayerw01 Sep 29, 2016 7:30 AM (in response to gpjavi)I don't think the driver needs to be supported by Red Hat.
The problem with MongoDB is to find a working JDBC driver. I've made some tests with the UnityJDBC driver (UnityJDBC - Download).
And the following approach worked at least in my environment:
- create a directory $JBOSS_HOME/modules/mongodb/main/
- create a module.xml with following contents
<module xmlns="urn:jboss:module:1.3" name="mongodb">
<resources>
<resource-root path="unityjdbc.jar"/>
<resource-root path="mongo-java-driver-3.0.3.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
<module name="javax.transaction.api"/>
</dependencies>
</module>
- copy the files unityjdbc.jar and mongo-java-driver-3.0.3.jar to this directory
- create the jdbc driver via jboss-cli
/subsystem=datasources/jdbc-driver=mongodb:add(driver-name=mongodb,driver-class-name=mongodb.jdbc.MongoDriver,driver-module-name=mongodb,driver-xa-datasource-class-name=mongodb.jdbc.MongoXADataSource)
- create the datasource via web console. (select "Custom" datasource)