I've implemented a non-transacted JCA Connector based on the example given in the JBoss manual. It manages a pool of tcp/ip socket connections to a legacy mainframe application.
The pool needs to keep a certain number of connections active when they are not being used by sending a special keep-alive request to the mainframe. I've looked at the JCA spec and the searched the forums but I haven't come across any simple way to this. Options : #1 Ideally I'd like the app-server to periodically invoke a method on each connection object in the free pool requesting it to send its keep-alive packet. (apologies if I've missed some really obvious way of doing this) #2 Using the WorkManager I could perhaps have a seperate task for each connection that periodicly called a method on it, if it was not in use. #3 The JCA 1.5 spec refers to an optional interface the ManagedConnectionFactory instance can implement , ValidatingManagedConnectionFactory, but I didn't find any references to it in the JBoss manual. Does JBoss use this optional interface and if so how often does it invoke it? Hopefully I've missed a simple solution to this, if not perhaps you could suggest the best approach. Shane JBoss-4.0.3SP1 JDK 1.5 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3910659#3910659 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3910659 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
