-
1. Re: postgre and mongoDB Integration using JDV
rareddy Apr 23, 2018 9:45 AM (in response to sagarika1in)Sagarika,
You need to take look at the "server.log" file in the JDV server in "standalone/logs" directory to see why the deployment is failing, that should give a better clue.
Ramesh..
-
2. Re: postgre and mongoDB Integration using JDV
sagarika1in Apr 24, 2018 12:55 AM (in response to rareddy)Dear Ramesh,
Thanks a lot for all your guidance so far.
Please find the document with detailed steps for creating integrated view
for PostgreSQL and MongoDB. Kindly let me know if the steps are correct or
not.
I understand we need to have an active VDB for MongoDB to preview the
data. So wanted to understand how can we create integrated VDB file for
multiple databases.
Please find the log files for reference.
Regards
Sagarika Singh
Tata Consultancy Services
Mailto: sagarika.singh@tcs.com
Website: http://www.tcs.com
-
server.log.zip 85.3 KB
-
standalone_log.txt.zip 25.9 KB
-
PostgreSQL_Mongo_Intg.docx 2.1 MB
-
-
3. Re: postgre and mongoDB Integration using JDV
rareddy Apr 24, 2018 9:58 AM (in response to sagarika1in)From the logs I see
Caused by: javax.resource.spi.InvalidPropertyException: No database name specified for mongodb connection
So, when you defined the connection details for the Mongo, you did not specify the "database" property for the Mongo, thus they fail to activate error. So, questions is
1) How did you create the connection? Using the Designer or editing the Standalone.xml file?
either case, you can edit the standalone.xml file in the JDV installation in "JDV/standalone/configuration" directory, and find "resource-adapters" subsystem, in there you will find your incomplete definition of the Mongo connection, edit to correct then once done save and restart the server. Then connect back from Designer and retest. A sample Mongo connection definition file can be found in "JDV/docs/teiid/datasources/mongodb/mongodb.xml" file.
Ramesh..
-
4. Re: postgre and mongoDB Integration using JDV
sagarika1in Apr 24, 2018 10:31 AM (in response to rareddy)Hi Ramesh,
I have created the model using teiid desginer and reusing the same model
for view creation.
I can see the data through OData connectivity for the model.I am creating
the model though teiid desginer only using MongoDb translator.
Regards
Sagarika Singh
Tata Consultancy Services
Mailto: sagarika.singh@tcs.com
Website: http://www.tcs.com
-
5. Re: postgre and mongoDB Integration using JDV
rareddy Apr 24, 2018 11:50 AM (in response to sagarika1in)Ok, as long as you do the edits I suggested above you should be able to go past the error you are seeing.