beautypg.com

Generating an ibm websphere resource adapter, Generating an ibm websphere resource adapter 35 – IBM WebSphere Adapters User Manual

Page 41

background image

For information on the characteristics of an IBM WebSphere Resource Adapter and
a J2C Resource Adapter, see Introduction to JCA.

Generation Options dialog

From the Adapter Specification drop-down, choose the type of adapter you want
to create:

v

Choose IBM WebSphere Resource Adapter in the Adapter Specification list to
generate code that extends the Adapter Foundation Classes.

v

Choose J2EE J2CA Resource Adapter in the Adapter Specification list to
generate code that implements the JCA 1.5 interface specification.

The wizard displays the generation options that correspond to your adapter.

What to do next

You are ready to specify generation options that match your adapter requirements.

Generating an IBM WebSphere Resource Adapter

You use the wizard to generate adapter classes that correspond to the adapter
capabilities you require. This involves choosing the types of adapter classes
(outbound, inbound, data binding, or enterprise metadata discovery) you want to
generate and then choosing the component properties associated with the adapter
classes.

The following sections describe the adapter classes and their associated component
properties.

Outbound adapter classes and associated properties

Generating outbound adapter classes creates code (and in some cases sequence of
calls, log and trace messages and comments) for the methods that must be
implemented to produce a resource adapter that can send business events to an
EIS. The list of Adapter Foundation Classes that are extended in your Connector
Project when you choose to generate outbound adapter classes is as follows:

v

Connection

extends com.ibm.j2ca.base.WBIConnection

v

ConnectionFactory

extends com.ibm.j2ca.base.WBIConnectionFactory

v

ConnectionRequestInfo

extends com.ibm.j2ca.base.WBIConnectionRequestInfo

v

Interaction

extends com.ibm.j2ca.base.WBIInteraction

v

InteractionSpec

extends com.ibm.j2ca.base.WBIInteractionSpec

v

ManagedConnection

extends com.ibm.j2ca.base.WBIManagedConnection

v

ManagedConnectionFactory

extends

com.ibm.j2ca.base.WBIManagedConnectionFactory

In addition the following are generated directly from the JCA 1.5 interface
specification:

v

ConnectionSpec

implements javax.resource.cci.ConnectionSpec

v

ConnectionMetaDataImpl

implements javax.resource.cci.ConnectionMetaData

v

LocalTransaction

implements javax.resource.spi.LocalTransaction

WebSphere Adapter development overview

35