JDeveloper provides default read/write access to any Business Components
EJB session bean to users in the group Administrators. You must alter
the default orion-application.xml
before deployment to
grant read/write access to users in other groups, represented throughout
this topic as users.
To grant client access to a Business Components EJB session bean:
Package the business components as
an EJB session bean. When complete, the project should contain
the files ejb-jar.xml
and orion-ejb-jar.xml
.
In the Business Components project, right-click ejb-jar.xml
and choose Edit EJB Module:
On Security Roles, add users.
On Method Permissions, choose the users from Security Roles and the package module name from Methods.
In the Business Components project, right-click
orion-ejb-jar.xml
, select Propert
ies:
On Security Role Mapping, add users .
On Details, add Groups name users (you can leave Value empty).
On Default Method Access, add Groups users.
Choose File | New to open the New Gallery.
In the Categories tree, expand General and select Deployment Descriptors. In the Items list, double-click orion-application.xml.
If the category or item isn't found, make sure the correct project is selected, and choose All Technologies in the Filter By dropdown list.
A file will be created and opened for editing.
<?xml version = '1.0' encoding = 'windows-1252'?>
<!DOCTYPE orion-application PUBLIC "-//Evermind//DTD J2EE Application runtime 1.2//EN" "http://xmlns.oracle.com/ias/dtds/orion-application.dtd">
<orion-application>
<data-sources path="./data-sources.xml"/>
<ejb-module remote="false" path="ProjectNameEJB.jar" />
<namespace-access>
<read-access>
<namespace-resource root="">
<security-role-mapping name="<jndi-user-role>">
<group name="users" />
</security-role-mapping>
</namespace-resource>
</read-access>
<write-access>
<namespace-resource root="">
<security-role-mapping name="<jndi-user-role>">
<group name="users" />
</security-role-mapping>
</namespace-resource>
</write-access>
</namespace-access>
</orion-application>
Copyright © 1997, 2004, Oracle. All rights reserved.