[jboss-jira] [JBoss JIRA] Commented: (JBAS-4087) SFSB.getCallerPrincipal() from before- and afterCompletion

Alexey Loubyansky (JIRA) jira-events at lists.jboss.org
Mon Feb 12 09:16:30 EST 2007


    [ http://jira.jboss.com/jira/browse/JBAS-4087?page=comments#action_12352849 ] 
            
Alexey Loubyansky commented on JBAS-4087:
-----------------------------------------

The caller is not available in the org.jboss.ejb.EnterpriseContext

      Principal getCallerPrincipalInternal()
...
            if( caller == null )
            {
               throw new IllegalStateException("No valid security context for the caller identity");
            }


> SFSB.getCallerPrincipal() from before- and afterCompletion
> ----------------------------------------------------------
>
>                 Key: JBAS-4087
>                 URL: http://jira.jboss.com/jira/browse/JBAS-4087
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: EJB2
>    Affects Versions: JBossAS-5.0.0.Beta1
>            Reporter: Alexey Loubyansky
>         Assigned To: Anil Saldhana
>
> One should be able to call ctx.getCallerPrincipal() from SFSB's  afterBegin, before- and afterCompletion.
> See "7.6.1 Operations Allowed in the Methods of a Stateful Session Bean Class" of the  EJB2.1 spec.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list