Bugs item #773839, was opened at 2003-07-18 20:26 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=773839&group_id=22866
Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: gui (janssk1) Assigned to: Nobody/Anonymous (nobody) Summary: Exception handling in JCA adapter Initial Comment: Hello, I have some issues with the exception handling of exceptions thrown by a custom JCA adapter. If an exception occurs during the creation of a managed connection, this is handled correcly (the managed connection is removed from the pool) However, if an exception occurs during retrieval of a handle (getConnection()), the managed connection is not given back to the pool (i think that's a bug). The availbleconnectioncount is decreased but there is not way to release the managed connection since the creation of the handle failed. To prevent this behavior, i am forced to send a 'errorOccured' event before throwing an exception during creation of a handle. But sending this event will destroy the underlying managed connection, which is not exactely what i want. I want the managed connection to be returned to the pool if the getConnection throws an exception. This prevents excessive destroying of (wellbehaved) managed connections. Another issue is related to closing a 'destroyed' connection handle. Suppose a major error occurs on the underlying managed connection during some operation on a handle. According to the spec, i send a notifyError to let the container know that this connection is no longer useable and throw an exception to the user code. This user code will typically notice the exception and close the handle. But then there's an issue: The close operation is called on a handle of a 'destoyed' managed connection. Should i in the close of the handle still send the connectionClosed event ? If i do it, jboss complains (thows an exception) about trying to close a destoyed connection. If i don't, i get the 'please to your own housekeeping' message. I think jboss should *or* automatically close the handle if a fatal error occurs *or* still allow the connectionClosed event to be send. Any comments are highly appreciated.. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=773839&group_id=22866 ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
