What is "...then it is not working..."? Does it throw a SQLException? Does it continue to process, but doesn't insert? Does it just hang? Does it stop for a while, then continue? Does it cause your hard drive to catch on fire?
You'll have to be more descriptive on the symptoms of your problem so we are better able to help you. It might help to post the relevant
java code too(not too much code though!).
Jamie