I was able to resolve this error in the past by
a) making sure that the watt.server.db.blocktimeout, watt.server.db.connectionCache, watt.server.db.maintainminimum and other connection level attributes have appropriate values
b) adding appropriate JDBC properties in the WmDB alias.
c) using a variable name other than $dbConnection in the pipeline (map $dbConnection to $yourConnection back and forth and drop the $dbConnection after the the pub.db.<xyz> service).
d) changing the session timeout (in the IS). This is especially useful if your service is being called by TN asynchronously
e) if scheduler is calling your service, dont invoke the service directly. Use a java service that does a ‘context.invoke’ instead.
Hopefully this will help. I will start at “micro” level resolution techniques (like pipeline maintenance, checking the pipeline when this error happens) and move gradually to more “macro” resolution techniques (like database connection parameters, JDBC properties, server session timeout).
Thanks,
Uday.
#Flow-and-Java-services#webMethods#Integration-Server-and-ESB