It's not a secret anymore!
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes HELP NEEDED in DD Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "HELP NEEDED in DD" Watch "HELP NEEDED in DD" New topic


Krishna Srinivasan
Ranch Hand

Joined: Jul 28, 2003
Posts: 1850

what is the use of <security-identity> element??
Can anyone expalin me??
Advance Thanx.

Krishna Srinivasan
OCAJP 7/8 Exam, 400+ OCPJP Mock Questions
Weerawit Maneepongsawat
Ranch Hand

Joined: Apr 11, 2002
Posts: 203

21.3.4 Specification of security identities in the deployment descriptor Run-as

The Application Assembler should specify the requirements for the caller�s principal management of
enterprise bean invocations by means of the security-identity deployment descriptor element
and as part of the description. If use-caller-identity is specified as the value of the security-
identity element, the caller principal is propagated from the caller to the callee. (That is, the
called enterprise bean will see the same returned value of the EJBContext.getCallerPrincipal()
as the calling enterprise bean.) If the run-as element is specified, a security principal that has
been assigned to the specified security role will be used for the execution of the bean�s methods and will
be visible as the caller principal in the callee.

You can you use-caller-identity or run-as element for make a call to another method in which role.
hope this help...

Weerawit<br />SCJP 1.4, SCWCD 1.2, SCWCD 1.4, SCBCD 1.3, SCBCD 5.0, SCMAD 1.0, SCJA 1.0, SCDJWS, SCJD, SCEA, SCDJWS 1.5
Krishna Srinivasan
Ranch Hand

Joined: Jul 28, 2003
Posts: 1850

I agree. Here's the link:
subject: HELP NEEDED in DD
It's not a secret anymore!