This content has been marked as final.
Show 2 replies
-
1. Re: JCA - best approach to implement keep-alive on socket co
starksm64 Dec 5, 2005 7:39 PM (in response to junk07100)We don't have any use of the ValidatingManagedConnectionFactory currently. I would imagine its due to the underwhelming description from the jca spec:
"j2ee_connector-1_5-fr-spec" wrote:
6.5.3.4 Detecting Invalid Connectionsimport java.util.Set; interface ValidatingManagedConnectionFactory { Set getInvalidConnections(Set connectionSet) throws ResourceException; }
This interface may be implemented by a ManagedConnectionFactory instance that supports the ability to validate ManagedConnection objects. The getInvalidConnections method returns a set of invalid ManagedConnection objects chosen from a specified set of ManagedConnection objects. This optional functionality may be used by the application server to prune invalid ManagedConnection objects from its connection pool periodically.
If you want to work towards an implementation of this that we would integrate into jboss and support going forward that would be good. Go to the JCA design forum if your interested in pursuing that path.
http://www.jboss.com/index.html?module=bb&op=viewforum&f=165
We have jdbc sepcific notions for connections, but they are not time based polling checks. They are checks invoked when the connections are taken from the pool or used.
#2 is what I would pursue otherwise. -
2. Re: JCA - best approach to implement keep-alive on socket co
adrian.brock Dec 5, 2005 9:57 PM (in response to junk07100)BootstrapContext.createTimer();