Uploaded image for project: 'jUDDI (Retired)'
  1. jUDDI (Retired)
  2. JUDDI-231

Fix potential db connection leaks

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0alpha
    • 3.0beta
    • core
    • None
    • any

    Description

      We should follow the following template where connections are close in a finally block.

      try
      {
      tx.begin();

      Product product = new Product("Sony Discman", "A standard discman from Sony", 49.99);
      em.persist(product);

      tx.commit();
      }
      finally
      {
      if (tx.isActive())

      { tx.rollback(); }

      em.close();
      }

      most of the code that needs fixing lives in the org.apache.juddi.api.impl package.

      Attachments

        Activity

          People

            kstam Kurt Stam
            kurtstam Kurt T Stam
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: