Справочник Пользователя для IBM WebSphere Adapters

Скачать
Страница из 226
In addition to object selection, MetadataSelection also holds properties that are
applicable for the selected objects. Such properties include the following:
v
Specification of service type: inbound or outbound
v
Namespace for use by business object definitions
v
ConnectionType
that for use at run time.
This step is required if the ConnectionType at run time differs from that for
metadata discovery. Regardless, IBM WebSphere recommends a different
connectionType
for metadata than for run time. The metadata connectionType
should contain properties needed to perform the discovery only. The runtime
connectionType
should contain resource adapter, managed connection factory, or
ActivationSpecWithXid
properties.
Implement the discovery service to reuse properties (for example, username,
password) from the MetadataSelection connectionType wherever possible. You can
specify other properties after the service description is created, when the tool
checks whether artifact properties have been specified.
MetadataObject:
The MetadataObject represents the node of the MetadataTree. You define properties
and filters in this object that help guide enterprise metadata discovery.
IBM WebSphere recommends that you specify objectProperties that suggest the
EIS objects you are defining. You should also define filter properties in
MetadataObject
that might make fetching of child objects more efficient and usable.
For example, for JDBC, if the node represents a schema, you might define a filter
to fetch tables by name rather than fetching all tables.
Enterprise metadata discovery description APIs
The enterprise metadata discovery description APIs comprise the objects that
correspond to the artifacts generated by the discovery process. The artifacts include
business object XSDs, the SCA import and export files and WSDL files.
The description APIs embody the service metadata generated by the discovery
service in response to import requests. The high-level model for this information
includes the following:
v
ServiceDescription
v
FunctionDescription
v
DataDescription
v
ConnectionDescription
Service, function, and data descriptions are present for both inbound and
outbound services. The models for the connection and function descriptions differ
slightly for inbound and outbound (for consistency with the JCA 1.5 specification).
The data description is identical for both inbound and outbound.
Service descriptions:
You extend abstract service description classes and implement methods to define a
service description for an inbound or outbound object.
You can specify a service description for inbound or outbound connections. The
objects you select are maintained by the MetadataSelection object. The
MetadataSelection
is passed to the discovery service implementation to complete
WebSphere Adapter development overview
131