Jian Lin wrote:
>
> According to Section 14.2 of the EJB 1.0 Spec, you should be able to do
>
> Identity roleIdentity = new Identity("roleName");
>
> This is not vendor-specific.
Granted, but OTOH it's not working either ;-)
Identity is an abstract class. Ye can't instantiate it. OTOH you can't
instantiate Principal either which is used in EJB1.1.
The workaround is to do getCallerIdentity().getName() which yields a
String that you can work with.
/Rickard
--
Rickard �berg
@home: +46 13 177937
Email: [EMAIL PROTECTED]
Homepage: http://www-und.ida.liu.se/~ricob684
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".