| Oracle® Containers for J2EE Enterprise JavaBeans Developer's Guide 10g (10.1.3.5.0) Part Number E13981-01 |
|
|
View PDF |
OC4J supports the use of standard JAAS API to retrieve the Subject, Principal, and credentials from within business methods and life cycle methods of session beans (stateless and stateful) and entity beans.
Example 22-10 shows how you can use the JAAS API to retrieve credentials in a business method of an enterprise bean deployed to OC4J.