Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
i am trying to use HikariCP for mongodb to get best for db connections.
but HikariCP doesn't have driver for mongodb.
Let me know is that true? is there any possible way to integrate HikariCP with mongodb?
HikariCP is a JDBC connection pool. You can't use it for NoSQL databases. It also doesn't have drivers for anything: it's a connection pool, so it uses JDBC drivers but you have to provide them.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I new in mongodb , i have few question about mongodb with jpa
1) why to use mongodb with jpa
2) why to not use mongodb with jpa
There's no need to use JPA for MongoDB since it is a document database and so there's no step for mapping Java fields to columns. You can use native Java POJO with the MongoDB Java driver and it will automatically discover and persist fields for you.
See the Quick Start for a demo.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
What is the exact purpose of jndi.Why i need to depends on server for my database connection.I can get the same database connection in normal ojdbc itself.
please help me with that.
Thanks n advance
These are some pointers why i personally prefer JNDI over harcoded configurations in code.
Application can work with any database since it does not need to
bundle the driver.
Multiple applications running on server can use the same connection
pool which might be better use of resources.
This allows container to perform XA transactions in case other
databases are used.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I want that when I am using jdbc and java to connect to a database it should connect to multiple database
Your question is too broad, but to answer your question to a certain extent, you can do that with multiple JDBC connections to different databases. Each of the database would require a specific connection string and database specific JDBC driver...
Hence, for you to connect to multiple databases using JDBC & Java - you would be able to do that loading the vendor specific drivers and create a connection per database that you would want to connect.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I was tried to connect two databases in application because I want to refer tables of both databases.Is it possible to connect two or more databases at the same application.I am using Hibernate libraries to connect to the database.
It has nothing to do with JSF because JSF is a view technology. In JDBC you connect to to different databases using getConnection method of DriverManager.In Hibernate you will need to configure one SessionFactory per database in your hibernate.properties or hibernate.cfg.xml. As documentation says,
You configure Hibernate's SessionFactory. SessionFactory is a global
factory responsible for a particular database. If you have several
databases, for easier startup you should use several
configurations in several configuration files.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Does spring-data-redis support redis clusters?
Any example will be helpful for me.
Spring Data Redis delegates the Redis connection to a driver library, and Jedis does support clustering. (JRedis is also supported by SDR, but the project appears to have been discontinued as of 2011.)
Sentinels are supported, but only with Jedis.