Tim Taylor wrote:

> When using the example JAAS setup and hello statefull bean (from the 
> JBoss site docs), I tried the following in the hello business method of 
> the bean.
> 
>     Subject s = Subject.getSubject(AccessController.getContext());
> 
> This returns null.  Shouldn't it return a Subject with my principal in 
> its set of principals?
> 
> I was using the 2.1 distributed version of JBoss on Solaris under JDK 1.3.

Use the isCallerInRole() and getCallerPrincipal methods on EJBContext.

-danch




_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to