Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#202 Instance not discarded when pool is full

open
nobody
None
5
2002-04-22
2002-04-22
Jonas Tehler
No

Class: org.jboss.ejb.plugins.AbstractInstancePool
Method: public void free(EnterpriseContext ctx)

Instance is not properly discarded (ejbRemove() is not
called for example) when it is returned to the pool but
the pool is full.

Fix:
add an else-statement that calls discard() after line 251

else
{
// Discard the context
discard (ctx);
}

Discussion