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
修改示例应用程序的资源引用映射
In the add reference dialog, click on the resource reference to add it.
在AddReference对话框,通过单击资源引用来添加它。
The resource sharing scope of the resource reference is set to Shareable.
资源引用的资源共享作用域被设为Shareable。
Assume the resource reference of the data source is marked as Unshareable.
假设数据源的资源引用被标记为unshareable。
Listing 2 shows how to specify the resource reference in the web.xml file.
清单2显示了如何在web. xml文件中指定资源引用。
Fix the problem by correcting the resource reference in the deployment plan.
然后通过纠正部署计划中的资源引用来解决问题。
This JNDI name is used during application deployment resource reference mapping.
在应用程序部署资源引用映射的过程中使用此JNDI名称。
Add the resource reference shown in Listing 5 to the application's web.xml file.
将清单5中显示的资源引用添加到应用程序的web . xml文件。
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.
要使用容器身份验证,就有必要配置资源引用。
In this scenario, the resource reference name is arbitrarily changed to customer.
在这种情形中,资源引用名可以被随意地改为customer。
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 查找数据库池。
应用推荐