tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manu T George (JIRA)" <j...@apache.org>
Subject [jira] Closed: (OPENEJB-953) OpenEJB embedded does not release stateless EJB instances in case of RuntimeException
Date Wed, 19 Nov 2008 03:30:44 GMT

     [ https://issues.apache.org/jira/browse/OPENEJB-953?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Manu T George closed OPENEJB-953.
---------------------------------


> OpenEJB embedded does not release stateless EJB instances in case of RuntimeException
> -------------------------------------------------------------------------------------
>
>                 Key: OPENEJB-953
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-953
>             Project: OpenEJB
>          Issue Type: Bug
>    Affects Versions: 3.1
>         Environment: Windows 2000
>            Reporter: Vincent MATHON
>            Assignee: Manu T George
>             Fix For: 3.1.1
>
>
> The bug is easy to reproduce: 
> 1/ create a simple EJB:
> @Local
> @Stateless
> public class SimpleEJBBean implements SimpleEJB {
> 	public void testRuntimeException() throws ApplicationException {
> 		throw new javax.persistence.PersistenceException();
> 	}
> }
> 2/ create a JUnit test that invokes 11 times the method testRuntimeException() in the
same test case.
> The test is blocked because all OpenEJB stateless instances of the pool are in use. This
behavior seems to be related to the code in class org.apache.openejb.core.stateless.StatelessContainer,
in method _invoke. In case of System Exception, instanceManager.poolInstance(callContext,
instance) is never called and the pool instances are all in use after 10 invocations since
10 is the default Sateless container pool size. 
> I haven't found any workaround yet.
> sincerly
> Vincent MATHON

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message