Skip to content
Advertisement

WAS gets hung WSVR0605W due to jdbc preparedstatement execute WCS

I’m trying to execute three different prepared statements inside a function which basically does an insert in three different tables.

File registration.java

JavaScript

createConnection method – I’m using ojdbc6.jar

JavaScript

When I call the regPoints function from a webpage in my local RAD or local environment its working perfectly fine. But the same doesn’t work when it’s running on a test environment. When I checked the logs I could see the below warning in the SystemOut.log and I had checked the database too. It never inserts any data because the initial insert is the point where it gets hung

JavaScript

Is this something to do with jdbc version? Or do we have any specific reasons for this issue?

Advertisement

Answer

I managed to take the connection from connection pool instead of creating one to avoid the above issue. By default WCS doesnt allow executing batch statements using serverjdbchelperaccessbean. So i took the datasource from basejdbchelper class and got the connection.

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement