IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Integration with Mongo DB using WmJDBC Adapter 9.10

  • 1.  Integration with Mongo DB using WmJDBC Adapter 9.10

    Posted Thu August 10, 2017 06:48 PM

    Dear Experts and Moderators,

    I am unable to connect to Mongo DB from wM IS via WmJDBC Adapter 9.10, I have the required drivers for mongo DB and below is my configuration:

    DataSource Class : wm.jdbcx.mongodb.MongoDBDataSource40
    serverName: localhost
    databaseName: myNewDatabase
    portNumber: 27017
    network protocol: tcp
    Other Properties: transactionMode=Ignore;readOnly=false;

    Mongo DB server is up and running and I am able to connect it via the mongo db client tools however when I try to enable the jdbc connection I receive the below error and I have no idea what is schemaDefinition and its absolute path.

    [ART.118.5042] Adapter Runtime (Connection): Unable to enable connection resource Default:mongoDB.
    [ART.118.5036] Adapter Runtime (Connection): Unable to configure connection manager.
    [ADA.1.204] Cannot connect to the database with DataSource class “wm.jdbcx.mongodb.MongoDBDataSource40”.
    [webMethods][MongoDB JDBC Driver]An invalid value was specified for the schemaDefinition connect option. Must specify an absolute path.
    Caused by: com.wm.pkg.art.error.DetailedException: [ART.118.5036] Adapter Runtime (Connection): Unable to configure connection manager.
    [ADA.1.204] Cannot connect to the database with DataSource class “wm.jdbcx.mongodb.MongoDBDataSource40”.
    [webMethods][MongoDB JDBC Driver]An invalid value was specified for the schemaDefinition connect option. Must specify an absolute path.

    I have reviewed the guide and there is no clue about this and it’s really frustrating with incomplete documentation from the Adapter team on connecting to Mongo DB using WmJDBC adapter. Kindly look into this issue and provide me a solution. Thanks for your support.


    #Adapters-and-E-Standards
    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: Integration with Mongo DB using WmJDBC Adapter 9.10

    Posted Mon December 11, 2017 11:37 AM

    Hi Mahesh,

    Did you get the resolution for Mongo DB connection problem?

    I am getting same error and we are having Bigdata licence from SAG.

    Error encountered
    [ART.118.5042] Adapter Runtime (Connection): Unable to enable connection resource Mongo:MongoConn.
    [ART.118.5036] Adapter Runtime (Connection): Unable to configure connection manager.
    [ADA.1.204] Cannot connect to the database with DataSource class “wm.jdbcx.mongodb.MongoDBDataSource40”.
    [webMethods][MongoDB JDBC Driver]An invalid value was specified for the schemaDefinition connect option. Must specify an absolute path.


    #webMethods
    #Integration-Server-and-ESB
    #Adapters-and-E-Standards


  • 3.  RE: Integration with Mongo DB using WmJDBC Adapter 9.10

    Posted Mon December 11, 2017 11:46 AM

    Hi Sasi,

    We were unable to resolve this error by ourselves and to accomplish our requirement, we went ahead with custom java service to integrate with Mongo DB.

    Contacting SAG support will give a hint and more details about this error.


    #Adapters-and-E-Standards
    #Integration-Server-and-ESB
    #webMethods


  • 4.  RE: Integration with Mongo DB using WmJDBC Adapter 9.10

    Posted Mon December 11, 2017 04:01 PM


  • 5.  RE: Integration with Mongo DB using WmJDBC Adapter 9.10

    Posted Fri December 22, 2017 07:53 AM

    Hello All,

    Hope this helps someone here who wants to integrate wM IS with Mongo DB with the help of Big Data Drivers provided by SAG (additional license cost). Got my issue resolved finally :slight_smile:

    The settings used are as below

    Mongo DB version 3.4
    IS 9.12 (IS_9.12_Core_Fix10), wM JDBC Adapter 9.10 (JDBC_9.10_Fix8)

    ==================================================================

    Connection Properties
    Transaction Type NO_TRANSACTION
    DataSource Class wm.jdbcx.mongodb.MongoDBDataSource40
    Server Name localhost
    User
    Password
    Database Name myNewDatabase
    Port Number 27017
    Network Protocol
    Other Properties SchemaDefinition=C:\tmp

    ================================================================

    Make sure to have the Big Data Driver for Mongo DB on the path below

    \IntegrationServer\instances\default\packages\WmJDBCAdapter\code\jars\static\mongodb.jar (my setup uses this)

    or

    \IntegrationServer\instances\default\packages\WmJDBCAdapter\code\jars\mongodb.jar

    Any questions, reach out to my email.

    Thanks


    #Integration-Server-and-ESB
    #webMethods
    #Adapters-and-E-Standards