Wildfly datasource - MongoDB - mongodb

Sorry for the basic question. I'm totally new to Wildfly and MongoDB (in fact, I am new to nosql also).
I need to know, is that possible to add MongoDB datasource in wildfly? If yes, then how can I do that?
I have done few tutorials using MySQL and Postgres, it seems like it works very well with those DBs. However, when I tried using MongoDB driver, it's not working as expected.

There is a JDBC driver available for MongoDB from Unity you can download it here. Using it should be able to create a Datasource on MangoDB as well as fire standard SQL queries too.
The database class name will be mongodb.jdbc.MongoDriver and the database url will be of the format jdbc:mongo://<serverName>/<databaseName>

Related

When I try to create a mongodb datasource in BIRT that connects to mongodb atlas it just times out, how to fix this?

I'm trying to create reports in BIRT using data from a mongodb data source hosted in Atlas. I'm using a shard's mongodb:// URI and not a mongodb+srv://. I'm able to connect to this URI from Compass and Intellij, yet birt mongodb data source times out. Is there any way I can fix this?

Creating a Postgres database with JDBC Driver when starting a SpringBoot app?

When I want to use a Mysql database in a Springboot app, I am able to create it on start via a string in properties similar to this:
spring.datasource.jdbc-url=jdbc:mysql://localhost:3306/testDb?createDatabaseIfNotExist=true&autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true
Nevertheless PostgreSQL seems to ignore this:
spring.datasource.jdbc-url=jdbc:postgresql://localhost:5432/testdb?createDatabaseIfNotExist=true&autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true
Is there a way to create a PostgreSQL db on start of a SpringBoot app before Flyway attempts to initiate tables?
Postgres doesn't support creating a database on demand via the JDBC URL. You can learn about what configuration is possible in the documentation.

MongoDB getting error while setting up at WAMP localhost for window

I am setting up MongoDB on localhost WAMP,
when i hit the port number http://127.0.0.1:28017 getting following error:
It looks like you are trying to access MongoDB over HTTP on the native driver port.
Please let me know how can i view database like phpmyadmin for MongoDB.
MongoDB does not offer by default a Webinterface for Administration, so you have to use additional Software. I know that Adminer also supports MongoDB.
Otherwise please read this Section in the MongoDB Docs (which are really great for learning MongoDB. I haven't tried all of them, but i think Adminer will do the Jobs. The MongoDB Shell is also great.
You can use cPanel too for this. cPanel server , because it is just another linux server.

Connect icCube with Reshift

in icCube 5.1 there is no Redshift as list of supported JDBC connections.
How to create a data source in icCube on Amazon Redshift ?
A first solution is using the Postgres jdbc driver. Redshift is based on Postgres so it also works (for how long is a good question).
The second is a bit more complicated as you need to add Reshift jdbc driver to icCube. First download jdbc driver from amazon from here, after follow this instructions to add a library to icCube.
Once done you've to configure a new data-source :

can I use MongoDb in server-less mode?

I'm considering using MongoDb for a backing store for a WPF app that I'm building. Mostly just to get some exposure to NoSQL. Ideally I'd like to make a mongodb database, put it in my application's root folder (or ./data) and connect to it with LINQ -- without having mongo.exe running. I did something similar recently with SQLite and found it to be a great change from XML for data storage.
Is this possible with MongoDb? All the samples that I've seen require mongod.exe to be running when you connect to the database. And the data is always stored in c:\data\db.
Answer, yes. Need to use the --dbpath switch and version 1.5.2 (for "upsert").