geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ?? <>
Subject why getCallerPrincipal not "getCallerSubject"?
Date Wed, 17 Oct 2007 06:27:31 GMT


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 聊天了,快来试试吧!
View raw message