在本文中,您将使用DB 2数据库适配器。
In this article you will work with the DB2 database adapter.
在本部分中,您将创建一个导出,当修改数据库表时,适配器从该导出发送更新。
In this section, you create the export from which the adapter sends updates when the database table is modified.
您可以使用此适配器与使用JDBC连接的任何数据库交换业务对象。
You use this adapter to exchange business objects with any database that you can connect to using JDBC.
一个服务器请求处理的例子是,将请求发送到适配器以对应用程序表执行数据库更新。
An example of service call request processing is a request sent to an adapter to perform database updates to an application table.
使用JDBC资源适配器,获取对模块进行数据库更改的技巧是使用触发器。
With the JDBC resource adapter, the trick to getting database changes to a module is using a trigger.
您需要为JDBC适配器入站处理定义数据库触发器。
You'll define database triggers for the JDBC adapter inbound processing.
数据库同步场景是一个很好的示例,其中您可以放置要使用的JDBC适配器的入站和出站功能。
The database synchronization scenario is a good example where you can put both the inbound and outbound capabilities of the JDBC adapter to use.
在接下来的页面上,您可以创建用于数据库导出的操作,然后创建模块以包含导出并配置适配器的属性。
On the next pages you create the operations that are available for your database export, then create the module to contain the export and to configure the properties for the adapter.
如果某个业务流程失败,则会回滚该全局事务,包括适配器已在该事务期间执行的任何数据库交互。
If a business process fails, the global transaction is rolled back, including any database interaction the adapter has exercised during the transaction.
适配器将使用业务对象在应用程序与数据库之间交换数据,因此应用程序不需要使用JDBC 应用程序编程接口 (API)。
The adapter uses business objects to exchange data between the application and the database, so the application does not need to use the JDBC application programming interface (API).
该向导使用JDBC资源适配器确定哪些操作可用作数据库的一部分。
The wizard uses the JDBC resource adapter to determine what operations are available as part of the database.
当数据库表中发生创建、更新或删除事件时,我们将使用该适配器的“入站接口”来调用业务流程。
We'll be using the "inbound interface" of this adapter to kick-off business processes when a create, update, or delete occurs in a database table.
适配器提供对数据库、文件、消息传递系统、企业应用程序和其他数据源和目标的访问。
The adapters provide access to databases, files, messaging systems, enterprise applications, and other data sources and targets.
JDBC适配器将详细查看数据库中的表,并确定需要什么服务来访问该数据。
The JDBC adapter looks at the tables in your database and determines what services it needs to access that data.
JDBC资源适配器处理从导入到EIS 的请求,本示例中为数据库。
The JDBC resource adapter handles requests to the EIS from the import, in this case a database.
到达的工作(比如平面文件适配器的文件系统中的文件或JDBC适配器的数据库表中的数据)不应该以超常的速度增长。
Inbound work, like number of files in the file system for a flat file adapter or data in a database table for a JDBC adapter, should not grow unusually.
JDBC资源适配器将EIS中更改的信息(本示例中为数据库的创建、更改或删除)转发到模块中的导出。
The JDBC resource adapter forwards changed information in the EIS, in this case a create, update, or delete in a database, to an export in your module.
在清单7所示的内容提供者中,可以使用适配器从XML文件或数据库检索数据。
In the content provider shown in Listing 7, you can retrieve data from an XML file or from a database using an adapter.
连接有不同的类型,比如通过JDBC连接到数据库,JMS连接,以及通过J2C资源适配器连接到其他任何外部资源。
There are different types of connections, such as connecting to a database via JDBC, JMS connections, as well as connections to any other external resource connected via a J2C resource adapter.
在运行JDBC资源适配器应用程序之前,您需要配置服务器,以便资源适配器可以对数据库进行身份验证。
Before you run the JDBC resource adapter application, you need to configure your server so that the resource adapter can authenticate with the database.
此数据库包括应用程序将要同步的客户表和JDBC资源适配器将轮询以创建入站事件的事件表。
This database includes the Customer table, which is the table that the application will synchronize, and the event table that the JDBC resource adapter will poll to create inbound events.
通过使用适配器,应用程序可以向数据库发送请求,以及从数据库接收事件,同时不需要编写SQL代码。
By using the adapter, an application can send requests to the database, as well as receive events from the database, and get rid of writing SQL code.
不同的数据库需要复制不同的jar;有关详细信息,请参考参考资料部分中的适配器文档。
Different databases require different jars to be copied; refer to the adapter documentation in the Resources section for more information.
ejb容器、持久性管理程序、相关资源适配器和数据库将联合起来对并发性(concurrency)进行控制。
The EJB container, persistence manager and the relational resource adapter and database work together to control the concurrency.
要使用入站适配器,必须使用Cview应用程序创建Cloudscape数据库
To use the inbound adapter, you have to create the Cloudscape database using the Cview application
该资源适配器提供对具有本地事务支持的远程IBMCloudscape数据库的访问。
The resource adapter provides access to a remote IBM Cloudscape database with local transaction support.
该资源适配器提供对具有 XA事务支持的远程IBMCloudscape数据库的访问。
The resource adapter provides access to a remote IBM Cloudscape database with XA transaction support.
该资源适配器提供对具有本地事务支持的嵌入式IBMCloudscape数据库的访问。
The resource adaptor provides access to an embedded IBM Cloudscape database with local transaction support.
该资源适配器提供对具有XA事务支持的嵌入式IBMCloudscape数据库的访问。
The resource adaptor provides access to an embedded IBM Cloudscape database with XA transaction support.
图1说明了JDBC资源适配器、数据库组件和WebSphereProcessServer组件的典型设置。
Figure 1 illustrates a typical setting for the JDBC resource adapter, database components and WebSphere Process Server components.
应用推荐