Configure the resource reference.
配置资源引用。
Bind the resource reference to the deployed datasource.
将资源引用绑定到部署的数据源。
Listing 4. JNDI mapping and resource reference in web.xml.
清单4 . web . xml中的JNDI映射和资源引用。
The dialog box for adding a resource reference features two tabs.
添加资源引用的对话框中有两个选项卡较为重要。
Modify the resource reference mappings for the sample application
修改示例应用程序的资源引用映射
The resource sharing scope of the resource reference is set to Shareable.
资源引用的资源共享作用域被设为Shareable。
Listing 2 shows how to specify the resource reference in the web.xml file.
清单2显示了如何在web. xml文件中指定资源引用。
This JNDI name is used during application deployment resource reference mapping.
在应用程序部署资源引用映射的过程中使用此JNDI名称。
To connect Tomcat to the MySQL database you need to define a resource reference.
要将Tomcat连接到MySQL数据库,需要定义资源引用。
The resource reference is necessarily configured to use container authentication.
要使用容器身份验证,就有必要配置资源引用。
Listing 3 shows how to specify the resource reference in the geronimo-web.xml file.
清单3显示了如何在geronimo - web . xml文件中指定资源引用。
Update the Web deployment descriptor, and add a resource reference for the data source.
更新Web部署描述符,并添加用于数据源的资源引用。
Instead of using JNDI lookups, an EJB can define a resource reference by injecting code.
EJB没有使用JNDI查找,而是通过注入代码定义一个资源引用。
Map the ejb/EventServiceEJB resource reference to ejb/EventServiceEJB, as Figure 9 shows
将ejb/EventServiceEJB资源引用映射到 ejb/EventServiceEJB,如图 9 所示
In this case, binding resource reference name CICSECI_B to cicseci turns on managed mode.
在这种情况下,将资源引用名cicseci_b绑定到cicseci将打开受管模式。
To create a resource reference, you have to add it to the deployment descriptor (web.xml).
要创建资源引用,您必须将它添加到部署描述符 (web.xml)。
Update the deployment descriptor with the resource reference definition shown in Listing 3.
使用清单3中所示的资源引用定义来更新部署描述符。
Jta-data-source: in this case, it is a resource reference defined on the calling session bean.
jta datasource:在此例中,它是在调用会话Bean上定义的一个资源引用。
The following example shows the configuration of a resource reference for a ConnectionFactory.
下面的示例演示了 ConnectionFactory 的资源引用配置。
Resource references: JMS connection factories should always be looked up using a resource reference.
资源引用:应该始终使用资源引用查找 JMS连接工厂。
These steps are not simply restricted to modifying the resource reference mappings for the application.
这些步骤并不仅限于修改应用程序的资源引用映射。
From the JSP code in Listing 2, access to the datasource is performed by looking up a resource reference.
在清单2的JSP代码中,访问数据源是通过查找资源引用来执行的。
To add the resource reference to the Web project, open its web.xml file in the References tab in the editor.
要将资源引用添加到Web工程中,请在编辑器的References选项卡中打开它的web.xml文件。
For Application login configuration, select SIBRunAsLogin, click Apply to update the resource reference, then OK.
对于Applicationloginconfiguration,请选择SIBRunAsLogin,单击Apply,以更新资源引用,然后单击ok。
Resource reference name: the name for the resource reference that the code component uses to identify the resource.
资源引用名:资源引用的名称,是代码部分用来识别资源之用。
Elements that are likely to change when deployed, such as the mapping of a resource reference to an actual resource.
被部署时很可能改变的元素,例如资源引用到实际资源的映射。
Make sure the configuration identifier of a resource reference matches the configuration identifier of the resource.
确保资源引用的配置标识符与资源的配置标识符匹配。
This setting maps the resource reference name "CICSECI_B" to the name of the connection factory configured in the server.
该设置将资源引用名“CICSECI_B”映射到服务器中配置的连接工厂的名称。
Specifically, check the "reference" section of your EJB deployment descriptor (both EJB reference and Resource reference).
特别地,检查eJB部署描述符中的“Reference”部分(EJB引用及Resource引用)。
You also need to declare the resource reference in web.xml and look for the database pool via JNDI from the application code.
您还需要在web.xml 中声明该资源引用,并在应用程序代码中通过JNDI 查找数据库池。
应用推荐