unsetEntityContext never called
-------------------------------
Key: JBAS-1663
URL: http://jira.jboss.com/jira/browse/JBAS-1663
Project: JBoss Application Server
Type: Bug
Components: EJBs
Versions: JBossAS-3.2.6 Final
Reporter: Arto Huusko
When entity instances are discarded, according to EJB 2.1 unsetEntityContext()
should be called (although, for some reason, this is not mentioned in Container
Provider Responsibilities, section 10.5.2 makes it quite clear that bean
providers may rely on unsetEntityContext() being called). As far as I can see
(and have tested slightly), unsetEntityContext() is never called in JBoss.
The problem can be seen in org.jboss.ejb.plugins.AbstractInstancePool.free():
if the pool is full, nothing spectacular is done; the entity instance is simply
left alone, which causes it to be GC at some time.
I believe, this code should be in the method:
// this already is there
if (pool.size() < maxSize)
{
pool.addFirst(ctx);
}
// add something like this
else
{
ctx.discard();
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development