-
Bug
-
Resolution: Done
-
Major
-
JBossAS-5.0.0.CR1, JBossAS-4.2.3.GA
-
None
There are a number of places in the UserTransaction initialisation and TxPropogationContextUtil
that are doing jndi lookups() without closing the initial context.
Typically
new InitialContext().lookup(...);
This is inefficient since on the client side this will mean an rmi connection is open
until it gets garbage collected.
This has already been fixed in JBoss5 for the TxPropogationContextUtil (correct code should look like this)
try
{
InitialContext ctx = new InitialContext();
try
finally
{ ctx.close(); } }
catch (NamingException e)
- is incorporated by
-
JBPAPP-1159 JBAS-5906 - Client user transaction lookups aren't closing initial contexts
- Resolved