Hi,

I was confused about EJBContext.getCallerPrincipal() signature?

Looks like Subject and Principal can both refer to identity. But from following:

A Subject may have many Principals.
For example, a person may have a name Principal
("John Doe") and a SSN Principal ("123-45-6789"),
which distinguish it from other subjects.

Why not use Subject instead of Principal to identify the caller? In J2ee 
specifications, we are also talking about Principal, not Subject?

Thanks & Best Regards,


_________________________________________________________________
手机也能上 MSN 聊天了,快来试试吧!
http://mobile.msn.com.cn/

Reply via email to