|
With the SecurityInterceptor patch I checked in
this morning I see the call principal
propagated from a session bean to an entity bean. I
have a simply test case where
a stateless session bean invokes an entity bean and
both see the same principal:
public class StatelessSessionBean2 implements
SessionBean
{ ...
public String echo(String arg) { System.out.println("StatelessSessionBean2.echo, arg="+arg); Principal p = sessionContext.getCallerPrincipal(); System.out.println("StatelessSessionBean2.echo, callerPrincipal="+p); String echo = null; try { InitialContext ctx = new InitialContext(); EntityHome home = (EntityHome) ctx.lookup("java:comp/env/Entity"); Entity entity = home.findByPrimaryKey(arg); echo = entity.echo(arg); } catch(Exception e) { e.printStackTrace(); } return echo; } ... Can you try the latest cvs code?
|
- Re: 2 [jBoss-User] CallerPrincipal propagation Keith L. Musser
- Re: 2 [jBoss-User] CallerPrincipal propagation Oleg Nitz
- Re: 2 [jBoss-User] CallerPrincipal propagatio... Darius Davidavicius
- Re[2]: 2 [jBoss-User] CallerPrincipal propagation Oleg Nitz
- Re: 2 [jBoss-User] CallerPrincipal propagation Scott M Stark
- Re: 2 [jBoss-User] CallerPrincipal propagation Scott M Stark
