This week's book giveaway is in the Testing forum. We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line! See this thread for details.
I am executing a java class in a .bat file. The class accesses DB2 tables. I am using DB2CMD -c -w -i DB2 "Connect To PLCAPRPS user db2prpp using db2prpp" to connect to the database and this works fine. After the connection the program starts up and I get a StaleConnectionException. When I run this class as a bean it works fine. I only have this problem running it as a bat file. Any help would be very appreciated. Thanks