PDA

View Full Version : Connection has been preempted


qxz
07-03-02, 23:56
I have this exception "SQLException:Connection has been preempted"
in my java program when I try to insert a few (more precisely, 4)
record into DB.

It seldom happened before but just all of a sudden, my codes are
not working. So I doubt there is some change of the WAS/DB
cofigurations. Anyone could help me to confirm this, and what is
the cause of the problem?

rnealejr
07-04-02, 03:54
This normally is tied to connection pooling - the connection is idle(orphaned), pooled and is reused. I would take a look at how your connection pool manager is configured. Also, when you handle the exception, add code to retrieve another connection.