About jndi database connection [closed] - java

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.

Related

How to achieve database independency when using jdbc [closed]

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.

Is there a database option that is local and does not require lots of overhead [closed]

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 need to create a local database for query purposes. I wish to build and populate a database with data from a number of text files, do the queries needed, and then destroy the database since it is no longer needed.
I am currently programing it in VB.net but would eventually want to port into a java or like language so other platforms can be used.
I prefer something that does not require the user to download something else to make this work. A person I asked did suggest SQLite but I am not sure how to load it internally.
Java SDK includes Derby Database - see the link.
That can be used without further download (only Java needs to be there of cause)

How do I import data from Activie directories through LDAP URL [closed]

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
I have got a requirement to connect Active directory systems through LDAP URL. I need to start this development very easiest way and looking to deliver this ASAP. Kindly share your thoughts.
I will be using Oracle JDeveloper for this development.
pure java example:
http://www.adamretter.org.uk/blog/entries/LDAPTest.java
If you can use Spring, go with spring-ldap:
http://projects.spring.io/spring-ldap/
Spring is really good library to handle ActiveDirectory connectivity. Just read the manual thats all.

MySQL to MS-SQL server 2005 [closed]

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
I am developing a Web application , I have written MySQL code for connecting to database , But at my work place they have MS-SQL server , thus Do I have to change full code for database connection or any simple modifications can be done !! Kindly help me out , I am very much new to JAVA,
Thanks in Advance
Depends,
if you use standard SQL statements you should be able to just specify the new jdbc driver and login information and it should work.
But when you used features from MySQL not available in MS SQL then you will have to modify these parts in the source code.

Postgresql notify and listen [closed]

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 8 years ago.
Improve this question
Hi every one I'm doing a small program to listen and notify using POSTGRESQL and JAVA. I just want to get notification message, to be stored in a file or MySQL database. Can any one guide me where I can find documentation or sample code for this.
Assuming that you are using JDBC, you can use the PostgreSQL extensions of the standard. In particular, you need the org.postgresql.PGNotification class to receive notifications that you have to explicitly poll for. See the JDBC documentation here. There is a fully worked-out example in the docs.

Categories