You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Manu T George (JIRA)" <ji...@apache.org> on 2008/11/12 14:23:44 UTC
[jira] Assigned: (OPENEJB-953) OpenEJB embedded does not release
stateless EJB instances in case of RuntimeException
[ https://issues.apache.org/jira/browse/OPENEJB-953?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Manu T George reassigned OPENEJB-953:
-------------------------------------
Assignee: Manu T George
> 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
>
> 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.