[jboss-jira] [JBoss JIRA] (AS7-1995) Re-entrant call into SFSB invalidly blocks

Carlo de Wolf (Resolved) (JIRA) jira-events at lists.jboss.org
Wed Oct 5 05:48:16 EDT 2011


     [ https://issues.jboss.org/browse/AS7-1995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carlo de Wolf resolved AS7-1995.
--------------------------------

    Resolution: Rejected

    
> 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: Carlo de Wolf
>             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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list