Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

connecting to mapped drive

Status
Not open for further replies.

loneill

Programmer
Mar 4, 2002
12
IE
Hi, I am using interbase database and java server pages. I understand that you can access Interbase over a mapped drive if you have interbase installed also on that drive. I am trying to connect using the following lines of code:

Class.forName("interbase.interclient.Driver");
Connection con=DriverManager.getConnection("jdbc:interbase://Diarmuid/E:/Wdesign.gdb","SYSDBA","masterkey");

Yet I have the following error:

javax.servlet.ServletException: [interclient] Communication error: A socket exception occurred while trying to establish a socket connection to server Diarmuid.
The message of the SocketException is "Connection refused: connect".
 
What gave you the idea you could connect over a mapped drive? You don't "connect" to a file - you connect to a running server process.

With the InterClient driver, you connect to the server where you have InterBase running, and you need the 'inter server' - the server part of InterClient too.

Martijn Tonies
InterBase Workbench - the developer tool for InterBase and Firebird
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top