Exforsys
+ Reply to Thread
Results 1 to 3 of 3

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 ...

  1. #1
    seenu01 is offline Junior Member Array
    Join Date
    Feb 2006
    Answers
    11

    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


  2. #2
    Limca is offline Junior Member Array
    Join Date
    Apr 2006
    Answers
    21
    Use JDBC.There are many drivers for different databases which can be used to connect directly a database without any DSN.


  3. #3
    ashfaque_khan6 is offline Junior Member Array
    Join Date
    May 2007
    Answers
    3
    Quote Originally Posted by seenu01 View Post
    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
    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



Latest Article

Network Security Risk Assessment and Measurement

Read More...