Hi all,
I've encountered error connecting to db while inserting records into postgresql using
java.
i have 4k records to be inserted to db from a text file,
first i read the text file and put into List<
String>
and from List, i do a for loop for each string in the list to insert to db.
the program run without any problem until around 1960+ records, it throws :-
org.postgresql.util.PSQLException: The connection attempt failed.
i did close rs,ps,con for each newly created connection.
is it a postgres problem or java problem?
Thanks