Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-4350

Connection proxying to imitate DissociatableManagedConnection can easily cause problems

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • 2.1, 2.1.4, 2.2
    • Wish List
    • connector
    • Security Level: public (Regular issues)
    • None

    Description

      We have some code to imitate the DissociatableManagedConnection to avoid connection leaks that proxies connections from the supplied ManagedConnectionFactory: the proxy implements all the interfaces of the connection, but not the class itself. However, there's nothing stopping the ConnectionFactory from casting the (now proxied) connection to the implementation class it expects.

      The TxConnect project at sourceforge illustrates this approach in the EisConnectionFactory.
      http://txconnect.sourceforge.net

      One possible solution would be to have a flag to turn on this proxying behavior. I don't immediately see a way to detect if the problem will occur.

      Attachments

        Activity

          People

            Unassigned Unassigned
            djencks David Jencks
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: