Configure the resource reference.
配置资源引用。
Click Add to create a new resource reference.
点击add创建新的资源引用。
Listing 6. Resource reference definition web.xml.
清单6. web . xml中的资源引用定义。
Select Resource reference as shown in Figure 7.
选择如图7所示的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
修改示例应用程序的资源引用映射
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。
Also add a new resource reference for the topic message by these entries.
还要按照以下步骤为主题消息增加一个新的资源参数。
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。
Next, follow these steps to set up a resource reference to your JNDI data source.
接下来,为您的jndi数据源建立参考资源。
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中所示的资源引用定义来更新部署描述符。
The following example shows the configuration of a resource reference for a ConnectionFactory.
下面的示例演示了 ConnectionFactory 的资源引用配置。
During development, the WAR module should be configured with a resource reference. For example.
在开发过程中,应该使用资源引用配置WAR模块。
Resource references: JMS connection factories should always be looked up using a resource reference.
资源引用:应该始终使用资源引用查找 JMS连接工厂。
应用推荐