hibernate - What's the difference between Pretest existing pooled connections and prestest new connections in websphere 6.1 -
What is the difference between protected existing pool connections and the latest connections in WebSpace 6.1? Which is the best option?
Can we enable both options?
You can enable both options at once.
The connection to the existing pooled connection is more useful as it relates to the general issue of fencing connection within the pool of connections already opened. If the pretest fails, the connection is abandoned and a new connection is established. The "active" connections are not pretested, so the display effect is limited. Otherwise, you have to handle StaleConnection exceptions as a copy:
Using a new connection is less useful, but you can enable it if you use the "initial warning system" want to recive.
Comments
Post a Comment