Next we'll configure method permissions for EJB2.1 and EJB3 session beans.
接下来,我们将配置EJB2.1和EJB3会话Bean的方法权限。
Listing 1 shows an example of code defining some role-based method permissions.
清单1所示的是用于定义某些基于角色的方法权限的示例代码。
We configure the bean method permissions by using the method-permission element under assembly-descriptor in ejb-jar.xml.
我们通过在 ejb-jar.xml 中的 assembly-descriptor下使用method-permission元素定义Bean方法权限。
Listing 7 shows fragments of the EJB application deployment descriptor used to configure the method permissions for SimpleSessionBean.
清单7显示了用于配置SimpleSessionBean的方法权限的EJB应用程序部署描述符的片段。
So, deployment descriptor properties such as isolation levels, access intent, security, method permissions, and so on cannot be set for such problem methods.
所以,就无法为这类问题方法设置隔离级别(isolation level)、访问目的(access intent)、安全性(security)和方法许可(method permission)等这些部署描述符属性。
Figure 25 shows a visual matrix of Method Permissions on the bean Book.
图25显示了bean Book上方法许可的可视化矩阵。
Method permissions map security roles to specific EJB methods and security constraints map security roles to Web resource collections that are a combination of HTTP methods and URL patterns.
方法权限将安全性角色映射到特定的EJB方法而安全性约束则将安全性角色映射到Web资源集合中,这些Web资源集合是HTTp方法和URL模式的一个组合。
Method permissions map security roles to specific EJB methods and security constraints map security roles to Web resource collections that are a combination of HTTP methods and URL patterns.
方法权限将安全性角色映射到特定的EJB方法而安全性约束则将安全性角色映射到Web资源集合中,这些Web资源集合是HTTp方法和URL模式的一个组合。
应用推荐