[jboss-jira] [JBoss JIRA] Created: (EJBTHREE-2022) Ejb3DescriptorHandler incorrectly assumes a non-stateless session bean to be a stateful session bean
jaikiran pai (JIRA)
jira-events at lists.jboss.org
Thu Feb 18 10:32:10 EST 2010
Ejb3DescriptorHandler incorrectly assumes a non-stateless session bean to be a stateful session bean
----------------------------------------------------------------------------------------------------
Key: EJBTHREE-2022
URL: https://jira.jboss.org/jira/browse/EJBTHREE-2022
Project: EJB 3.0
Issue Type: Bug
Components: core
Affects Versions: EJB3_1 1.0.4, Plugin 1.0.19, 1.1.22
Reporter: jaikiran pai
Assignee: jaikiran pai
Ejb3DescriptorHandler which creating containers out of metadata, incorrectly creates a StatefulContainer if the metadata is of type session and not a stateless bean:
if (enterpriseBean.isSession())
{
if (((JBossSessionBeanMetaData) enterpriseBean).isStateless())
return EJB_TYPE.STATELESS;
else
return EJB_TYPE.STATEFUL;
}
This no longer is a valid assumption because of the new Singleton bean in EJB3.1. As a result, this piece of code incorrectly ends up creating a stateful container for a singleton bean.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list