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())
em.close();
}
most of the code that needs fixing lives in the org.apache.juddi.api.impl package.