
- Forum
- Programming Talk
- Java
- Connect to Database
Connect to Database
This is a discussion on Connect to Database within the Java forums, part of the Programming Talk category; Hi Friends, How to connect to database in Java without creating DSN and by using JNDI in J2EE Server. please ...
-
Connect to Database
Hi Friends,
How to connect to database in Java without creating DSN and by using JNDI in J2EE Server. please any one help me
Thanks in advnace
seenu
-
Use JDBC.There are many drivers for different databases which can be used to connect directly a database without any DSN.
-
05-01-2007, 12:36 PM #3
- Join Date
- May 2007
- Answers
- 3
Using the Jar file ojdbc14.jar create a connection pool in the JNDI directory service and than in your code use the datasource object with lookup method to access the connection . For code reply.
-
Sponsored Ads

Reply With Quote






