Step 5: Deploy the DB2 datasource
步骤5:部署DB2数据源
连接至数据源。
Disconnect from the source datasource.
断开与源数据库的连接。
Create a datasource for the SFM database.
创建SFM数据库的数据源。
Lookup — Looks up a datasource reference.
lookup——查找数据源引用。
Make sure this is created as an XA datasource.
请确保将该项创建为xa数据源。
Enter the datasource name for the JNDI name value.
输入数据源名称作为JNDIname的值。
Bind the resource reference to the deployed datasource.
将资源引用绑定到部署的数据源。
It is also necessary to change some datasource Settings.
更改某些数据源设置也是有必要的。
JDBC datasource Can be configured to use any JDBC driver.
JDBC数据源可以配置为使用任何JDBC驱动程序。
This value identifies the datasource in the JNDI name space.
该值在JNDI名称空间标识数据源。
We will configure the datasource with that name later in WebSphere.
后面,我们将在WebSphere中用这个名称配置数据源。
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文件首先查找一个数据源,然后创建一个新的连接。
Use the XA JDBC provider to create the datasource in the admin console.
在控制台中,使用XAJDBC提供者来创建datasource。
You'll use this name later when you map the Web module to this datasource.
在将Web模块映射到此数据源时,将使用此名称。
If using the latter, be sure to set the name of the datasource that will be used.
如果使用后者,请一定设置将被使用的数据源的名称。
Sample of Asynchronous Binding (XAML) binding the client widget to the datasource
客户端部件与数据源的异步绑定(XAML)
Server-wide datasource: This is used by all the applications running on the server.
服务器范围的数据源:它用于在服务器上运行的所有应用程序。
Please notice, that there is no login information assigned to the datasource object.
请注意,没有将任何登录信息指定给数据源对象。
Even if the datasource supports XA transactions, there is a possibility of deadlock.
即使数据源支持xa事务,还会有死锁的可能。
You usually provide Hibernate with a datasource which provides the pooling function.
通常会为Hibernate提供一个有连接池功能的数据源。
The daytrader sample provided by Community Edition uses the module scoped datasource.
Community Edition提供的daytrader示例使用该模块范围的数据源。
Module scoped datasource: This is used only by one specific module in the application.
模块范围的数据源:它只用于应用程序中的某个特定模块。
The SimpleJNDI servlet stores the datasource name (jdbc/SimpleDB) in a local variable.
SimpleJNDIservlet 将数据源名称(jdbc/SimpleDB )存储在一个局部变量中。
The database.properties file is no longer required since we are using a JNDI datasource.
因为我们使用了一个jndi数据源,所以不再需要database . properties文件。
Many systems have a console application to simplify defining and deploying the datasource.
很多系统有一个控制台应用程序来帮助定义和部署数据源。
The following steps outline creating a datasource for a Derby database called JPetstoreDB.
下面的步骤概括了为一个名为 JPetstoreDB 的Derby数据库创建数据源的过程。
应用推荐