AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Newbie : interbase , socket connection error

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java and Databases
View previous topic :: View next topic  
Author Message
Thijs David
Guest





PostPosted: Mon Dec 08, 2003 10:08 pm    Post subject: Newbie : interbase , socket connection error Reply with quote



Hey all,

As said in the subject, I'm a newbie with a problem on an Interbase
connection.
I'm writing a converter, to put a standard text-file into a table of a
database.
Therefor I first need to do some operations on the text, these work well.
For the moment I put every line of the database into a HashMap, when the
whole text-file has been converted I want to put the content of the HashMap
into a table of the database. All works fine, when I do this one record at a
time (so for each record, I open a connection and after the insertion I
close it again).
I triead to keep the connection open while inserting all the records one by
one, but each time I get a socket connection error, from Interbase.
Is there a solution for this.
Note that I can't use a ResultSet to put my data in, because my
InterbaseDriver isn't JDBC 2 compatible (I know this because I allready
tried it).
So what I need to know is, if there's a way to keep the connection open
until the insertion of records is finished.
Is there a better way to temporary store the lines of the text-files and to
finally insert them into a Interbase-table.

Greetings,

David


Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java and Databases All times are GMT
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.