com.ibm.websphere.ce.cm.StaleConnectionException cause and solution
com.ibm.websphere.ce.cm.StaleConnectionException: Io exception: Connection reset by peer: socket write error:java.sql.SQLException: Io exception: Connection reset by peer: socket write error.
"When an application receives a StaleConnectionException on a database operation, it indicates that the connection currently held is no longer valid. While it is possible to get a StaleConnectionException on any database operation, the most common time to see a StaleConnectionException thrown is the first time that a connection is used, just after it is retrieved."
My working solution:
I set the minimum number of connections of the datasource connection pool to zero so that all connections are cleaned up when they are not in use.