-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Hibernate + InterClient + InterServer + Interbase
PostPosted: Tue Sep 06, 2011 12:08 pm 
Newbie

Joined: Fri Sep 02, 2011 1:29 pm
Posts: 1
I am trying to connect java to interbase with the next code for the purpose of perform a test of connection to my database of interbase but in on this line of code "cnx = DriverManager.getConnection(databaseURL,user,password);" waits indefinitely without returning any error and never connects and also and tried to do using "Communication Diagnostics" of "InterServer", but the result is the same, waits indefinitely without returning any error and never connects

Someone who has the solution for this problem?

I have the following development environment

Eclipse SDK 3.2.2
InterClient version: 2.1
InterServer 1.51
InterBase 5.5
jre6
Windows XP Professional






Connection cnx;
Statement stmt;
ResultSet result;

String databaseURL = "jdbc:interbase://localhost:3060/c:/data/TEST.gdb";
//String databaseURL = "jdbc:interbase://localhost/c:/data/TEST.gdb";


try
{
try
{
Class.forName ("interbase.interclient.Driver");

}
catch (java.lang.ClassNotFoundException e)
{
out.write( ("InterClient not found in class path");
out.write((e.getMessage ());
}

cnx = DriverManager.getConnection(databaseURL,user,password);

}
catch( SQLException SQLe )
{
out.write(SQLe.getMessage()+" \n"+
" SQLState: " + SQLe.getSQLState()+"\n"+
" ErrorCode: " + SQLe.getErrorCode());
}


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.