[jboss-jira] [JBoss JIRA] Updated: (AS7-1995) Re-entrant call into SFSB invalidly blocks
Carlo de Wolf (JIRA)
jira-events at lists.jboss.org
Mon Oct 3 14:19:26 EDT 2011
[ https://issues.jboss.org/browse/AS7-1995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carlo de Wolf updated AS7-1995:
-------------------------------
Description:
Calling a method on the proxy returned by SessionContext.getBusinessObject(Class) can lead to incorrect ConcurrentAccess(Timeout)Exceptions.
{code}
@Stateful
public class ReentrantStatefulBean {
@Resource
private SessionContext ctx;
private Object state;
@TransactionAttribute(NEVER)
public void callMe() {
this.state = new Date().toString();
ctx.getBusinessObject(ReentrantStatefulBean.class).check(this.state);
}
@TransactionAttribute(REQUIRED)
public void check(final Object check) {
if (this.state != check)
throw new IllegalStateException("EJB 3.1 FR 21.2 I'm not being myself today");
}
}
{code}
was:Calling a method on the proxy returned by SessionContext.getBusinessObject(Class) can lead to incorrect ConcurrentAccess(Timeout)Exceptions.
> Re-entrant call into SFSB invalidly blocks
> ------------------------------------------
>
> Key: AS7-1995
> URL: https://issues.jboss.org/browse/AS7-1995
> Project: Application Server 7
> Issue Type: Bug
> Components: EJB
> Environment: https://github.com/wolfc/jboss-as/tree/reentrant
> Reporter: Carlo de Wolf
> Assignee: Stuart Douglas
> Fix For: 7.1.0.CR1
>
>
> Calling a method on the proxy returned by SessionContext.getBusinessObject(Class) can lead to incorrect ConcurrentAccess(Timeout)Exceptions.
> {code}
> @Stateful
> public class ReentrantStatefulBean {
> @Resource
> private SessionContext ctx;
> private Object state;
> @TransactionAttribute(NEVER)
> public void callMe() {
> this.state = new Date().toString();
> ctx.getBusinessObject(ReentrantStatefulBean.class).check(this.state);
> }
> @TransactionAttribute(REQUIRED)
> public void check(final Object check) {
> if (this.state != check)
> throw new IllegalStateException("EJB 3.1 FR 21.2 I'm not being myself today");
> }
> }
> {code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list