[jbosstools-dev] javax.security.Principal or java.security.Principal?
Viacheslav Kabanovich
scabanovich at exadel.com
Thu Apr 7 19:21:51 EDT 2011
Hello Peter
Specification "JSR-299: Contexts and Dependency Injection for the Java
EE platform" includes into the list of built-in beans (3.6. Additional
built-in beans) a bean with bean type javax.security.Principal.
Weld implementation creates bean for java.security.Principal.
It is interesting that Google search gives 132000 results for
"javax.security.Principal" and 497000 for "java.security.Principal". One
of most instructing examples is book "The Ultimate Guide: J2EE WeB
Services" by Richard Monson-Haefel, where it is stated that "The
SessionContext.getCallerPrincipal() method returns a
javax.security.Principal object" and the next page illustrates the
statement by a sample code with "import java.security.Principal"
Would you please check if JSR-299 specification misspells the name of type?
Best regards,
Viacheslav Kabanovich
More information about the jbosstools-dev
mailing list