0 Replies Latest reply on May 12, 2008 7:23 PM by Dan Killey

    JBoss Connection Socket usage in error scenarios

    Dan Killey Newbie

      Original Post, wrong area? - http://www.jboss.com/index.html?module=bb&op=viewtopic&t=133873

      Essentially to summarize, we've noticed that when a HA connection data source is configured with a new-connection-sql statement, that if the socket connection succeeds, but the new-connection-sql fails, the connection is not closed prior to throwing the ManagedConnect object away. Thus there exists potential for alot of sockets to be opened and not closed until GC, whereby a bit of extra code can close those sockets proactivly.

      Before submitting as a bug I wanted to just gather any feedback on this.

      The above URL has a good code clip at the bottom that describes the exact code and what we are seeing.