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映射和资源引用。
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部署描述符,并添加用于数据源的资源引用。
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中所示的资源引用定义来更新部署描述符。
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文件。
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”映射到服务器中配置的连接工厂的名称。
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 查找数据库池。
The reference points to this resource reference name and target data source, which is automatically configured in the extended EAR.
参考指向了资源参考名以及目标数据源,这些都会在扩展的 EAR中自动得到配置。
A resource reference has several attributes, one of which is whether the container or the application should provide the credentials.
资源引用具有多个属性,其中一个是关于容器或应用程序是否应提供凭据。
The configuration id provided to the datasource is what identifies the mapping between the resource reference and the resource itself.
提供给数据源的配置ID是确定资源引用与资源本身之间的映射关系的ID。
In addition, a WebSphere Studio Application Developer example shows how to set access intent and isolation level in a resource reference.
此外,一个WebSphereStudioApplication Developer示例将展示如何在资源引用中设置访问意图(access intent)和隔离级别(isolation level)。
To tell the Geronimo application server how to bind a resource reference to a deployed resource, you need to use a Geronimo deployment plan.
要告诉Geronimo应用服务器如何将资源引用绑定到部署的资源,则需要使用Geronimo部署计划。
应用推荐