The following table shows a list of all the JNDI names used in the sample MyBank application
下表列出了在样本应用程序MyBank 中使用的所有JNDI名
In the sample scenario, let us consider co-hosting two versions of the MyBank J2EE application.
在上面的示例场景中,让我们来考虑一下同时托管两个不同版本的MyBank J2EE应用程序的问题。
To show how the issues listed above can be resolved, we will look at a small sample J2EE application, called MyBank.
为了展示如何解决上面列出的问题,我们将考虑一个小型的J2EE应用程序,我们将其称作为My Bank。
In this example, we configured the create method on the Home interface of MyBank entity bean to be accessible only by the manager role.
在此示例中,我们在MyBank实体Bean的Home接口上将create方法配置为只能由manager角色进行访问。
The MyBank application is packaged in the MyBankCMP.ear file and is composed of the J2EE components and modules listed below and shown in Figure 2.
My Bank应用程序被封装在MyBankCMP . ear文件中,并且由下面列出的J2EE组件和模块组成(如图2所示)。
In the following sections, each of the aforementioned issues are examined in more detail in relation to this new field change in the MyBank application.
在随后的部分中,我们将详细讨论因为这种变化而带来的同时托管问题。
It succeeded because the page is configured, using run-as role, to access the MyBank bean with the user ID dwadmin which maps to the manager role as configured in the MyBankEJB deployment plan.
之所以成功,是因为页面使用Run - as角色配置为使用用户IDdwadmin访问MyBankBean,此用户ID在MyBankEJB部署计划中配置为映射到manager角色。
It succeeded because the page is configured, using run-as role, to access the MyBank bean with the user ID dwadmin which maps to the manager role as configured in the MyBankEJB deployment plan.
之所以成功,是因为页面使用Run - as角色配置为使用用户IDdwadmin访问MyBankBean,此用户ID在MyBankEJB部署计划中配置为映射到manager角色。
应用推荐