cancel
Showing results for 
Search instead for 
Did you mean: 

Issue regarding JDBC drivers JARs

Former Member
0 Kudos

Hi all,

I have created a J2EE application within NW Dev Studio. Now, I have created an Enterprice project as well as a Web Project, the first one being linked ot the other.

Now I have to add the following JARs to the Web Project, in the Java Build Path, for the JDBC connection to work:

>> msbase.jar, mssqlserver.jar and msutil.jar.

I am using the following code to create a DB connection.

>> Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");

>> connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://dbname:1555","user","pass");

Everytime I build and run my application, these JAR files disappear. Is there a way to create a reference to these inside my application? (through DC, Reference?)

Thanks.

Michael

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Make use of datasources. Which can be created using Visual Admin.

Refer this using JNDI in code.

Following thread explain the steps

Regards

Ayyapparaj

Former Member
0 Kudos

Hi,

Refer to this blog:

Regards,

Apurva