Step 5: Deploy the DB2 datasource
步骤5:部署DB2数据源
Datasource configuration - part 2.
数据源配置-第2部分。
Datasource configuration - part 1.
数据源配置-第1部分。
Datasource (mapped to a DB2 database).
数据源(映射到DB 2数据库)。
Create a datasource for the SFM database.
创建SFM数据库的数据源。
Lookup — Looks up a datasource reference.
lookup——查找数据源引用。
Disconnect from the source datasource.
断开与源数据库的连接。
Make sure this is created as an XA datasource.
请确保将该项创建为xa数据源。
Bind the resource reference to the deployed datasource.
将资源引用绑定到部署的数据源。
JDBC datasource Can be configured to use any JDBC driver.
JDBC数据源可以配置为使用任何JDBC驱动程序。
This value identifies the datasource in the JNDI name space.
该值在JNDI名称空间标识数据源。
It also includes the web.xml which describes the datasource.
这个文件夹还包含描述数据源的web . xml文件。
The code fragment in Listing 6 shows attributes of DataSource.
清单6中的代码片段显示DataSource的属性。
Connection conn2 is then acquired from the same datasource, ds.
然后从相同的数据库ds获得连接conn2。
Save the configuration and test the datasource to ensure connectivity.
保存配置并测试数据源,以确保连接性。
Listing 7. Element in web.xml specifying the JNDI datasource reference.
清单7 . web . xml中指定JNDI数据源引用的元素。
The JSP file first looks up a datasource, then creates a new connection.
JSP文件首先查找一个数据源,然后创建一个新的连接。
In other words, an XA DataSource is required to run in a global transaction.
换句话说,一个xa数据源被要求运行于一个全局事务中。
If using the latter, be sure to set the name of the datasource that will be used.
如果使用后者,请一定设置将被使用的数据源的名称。
After you've deployed the DB2 datasource, you're ready to install the application.
在部署DB 2数据源之后,就准备安装应用程序。
This will be the userid that is used to connect to the database for our DataSource.
这个用户标识将用于连接到作为我们的数据源的数据库。
Server-wide datasource: This is used by all the applications running on the server.
服务器范围的数据源:它用于在服务器上运行的所有应用程序。
If you omit the datasource attribute, then the JSTL default datasource is used.
如果您忽略了datasource属性,那么使用JSTL的缺省datasource。
Even if the datasource supports XA transactions, there is a possibility of deadlock.
即使数据源支持xa事务,还会有死锁的可能。
Module scoped datasource: This is used only by one specific module in the application.
模块范围的数据源:它只用于应用程序中的某个特定模块。
After the list is retrieved from the datasource, it displays the data in a tabular format.
在从数据源中获得该列表之后,该列表将以制表形式显示数据。
Many systems have a console application to simplify defining and deploying the datasource.
很多系统有一个控制台应用程序来帮助定义和部署数据源。
Application scoped datasource: This is used by one or more modules of the same application.
应用程序范围的数据源:它用于同一个应用程序的一个或多个模块。
This datasource will be used for configuring the federated repository accessing this database.
此数据源将用于配置访问此数据库的联合存储库。
Some of these transactions have been coordinated with JMS/MQ transactions using an XA datasource.
其中某些事务已经可以使用XA 数据源使其与JMS/MQ 事务等同。
应用推荐