Java Concurrent Program which involves connection to third party application having MS-SQL database
We have created a Java Concurrent Program which involves connection to third party application having MS-SQL database.
The program is working fine if the driver related files are kept at $JAVA_TOP as
$JAVA_TOP/net/sourceforge/jtds/.....
and then calling connection within class file as:
Class.forName("net.sourceforge.jtds.jdbc.Driver");
msConn = DriverManager.getConnection("jdbc:jtds:sqlserver://<IP Address>","<username>",<password>);
But we want this to work if we place driver related files in some custom directory under $JAVA_TOP.
What additional steps need to be done to achieve this?
The program is working fine if the driver related files are kept at $JAVA_TOP as
$JAVA_TOP/net/sourceforge/jtds/.....
and then calling connection within class file as:
Class.forName("net.sourceforge.jtds.jdbc.Driver");
msConn = DriverManager.getConnection("jdbc:jtds:sqlserver://<IP Address>","<username>",<password>);
But we want this to work if we place driver related files in some custom directory under $JAVA_TOP.
What additional steps need to be done to achieve this?
0