![]() |
![]() |
|
|
| |
Configuring Security in EJBs
You can secure EJBs by restricting access to them. To restrict access to specified EJBs, apply security constraints to them.
Configuring Security Constraints
To figure security constraints, follow these steps:
<security-role-ref> <role-name>admin</role-name> <role-link<admin</role-link> </security-role-ref>
<security-role> <description></description> <role-name>admin</role-name> </security-role> <method-permission> <role-name>admin</role-name> <method> <ejb-name>containerManaged</ejb-name> <method-name>*</method-name> </method> </method-permission>
<security-role-assignment> <role-name>admin</role-name> <principal-name>Accounting Managers</principal-name> <principal-name>HR Managers</principal-name> <principal-name>system</principal-name> </security-role-assignment>
Note: Note that principals can be either users or groups in your security realm.
Note: If something concerning EJBs was fixed in a service pack, you will need to add the service pack jar file to the front of the classpath in the build script in order to take advantage of the fix.
java examples.ejb.basic.containerManaged.Client "t3://WebLogicURL:Port" user password
Parameters are optional, but if any are supplied, they are interpreted in this order:
![]() |
![]() |
![]() |
|
Copyright © 2001 BEA Systems, Inc. All rights reserved.
|