-
1. Re: change background-validation-minutes to seconds
adrian.brock Feb 12, 2007 9:58 AM (in response to bortx)Feature request:
http://jira.jboss.com/jira/browse/JBAS-4088 -
2. Re: change background-validation-minutes to seconds
weston.price Feb 12, 2007 10:35 AM (in response to bortx)Generally, background validation should occur at longer intervals to avoid stressing the pool. Keep in mind, everytime the background validation cycle begins the entire pool is evaluated.
-
3. Re: change background-validation-minutes to seconds
bortx Feb 12, 2007 11:34 AM (in response to bortx)Yes, you are right, but I have the problem that I have to check connections to the EIS periodically in order to maintain connections. If not, the EIS closes connections not checked. The expiration time is exactly one minute. I use the background validation to perform those checks, so the EIS is constantly closing connections.
One more thing that I've noticed, is that jboss always checks all connections that have been created, the ones that are in the pool at the moment, and the ones that have been destroyed previously. The pool works right, I mean, it never returns a destroyed connection, and the pool has the number of connections I've specified, but I don't know why it tries to validate destroyed connections.
I've implemented the destroy() method so that it closes the connection to the EIS. What actions am I supposed to perform on the destroy() method? May I notify ConnectionEventListener set on some event? I only notify those listeners when in the close() method.
Thanks a lot.
Bortx -
4. Re: change background-validation-minutes to seconds
justinwalsh Apr 21, 2008 6:42 AM (in response to bortx)Support background-validation-seconds
and deprecate background-validation-minutes
Is this change going to be backported to a 4.2.x release?
Thanks,
Justin -
5. Re: change background-validation-minutes to seconds
adrian.brock May 16, 2008 11:43 AM (in response to bortx)"justinwalsh" wrote:
Support background-validation-seconds
and deprecate background-validation-minutes
Is this change going to be backported to a 4.2.x release?
Thanks,
Justin
Not during 4.2.x releases. That would be an incompatibility in minor point releases.
The change has been made in JBoss5.