I have a webservice running on glassfish that is calling an oracle stored procedure. Clients make about 30-50 request per second on that webservice.
The problem is that only 2-3 calls can be made to the webservice before glassfish hangs (can't even login to the console). When I do not make the stored procedure call, everything runs fine.
Can you make more simultaneous calls to that stored proc in some other environment, say from a desktop application, or the DB's command line interface?
The stored proc only does 1 thing: write a timestamp to a database table.
I can see the record being inserted but my webservice does not execute the next line after calling the stored procedure method.
What could be wrong?
John Kimball
Ranch Hand
Joined: Apr 13, 2009
Posts: 96
posted
0
You never close your connection.
In regards to the line:
1. How many open connections are you allowed to have?
2. Will .getConnection wait synchronously until it can get one, or will it eventually throw an error?
Masrudyn Main
Greenhorn
Joined: May 13, 2009
Posts: 20
posted
0
hi,
thanks for your reply. I was using the connection pool in glassfish. Anyway, after much troubleshooting, I found out that the problem was due to glassfish 2.1 not supporting jdk6 on AIX. Here's the thread which I posted on glassfish forum:
http://forums.java.net/jive/thread.jspa?messageID=350608