IBM WebSphere Adapters User Manual page 152

Version 6 release 2
Table of Contents

Advertisement

This class is similar to WBIOutboundConnectionConfigurationImpl except instead
of ManagedConnectionFactory, WBIInboundConnectionConfigurationImpl handles
the ActivationSpecWithXid bean class. You must extend the methods described
below.
public PropertyGroup createActivationSpecProperties() {
WBIPropertyGroupImpl connProp = null;
try {
connProp = (WBIPropertyGroupImpl) EMDUtil.getPropertyGroup
WBIPropertyGroupImpl credentialPropertyGroup = new WBIPropertyGroupImpl
credentialPropertyGroup.setDisplayName
(WBIMetadataDiscoveryImpl.getPropertyName("UserCredentials"));
credentialPropertyGroup.setDescription
(WBIMetadataDiscoveryImpl.getPropertyDescription("UserCredentials"));
WBISingleValuedPropertyImpl property = new WBISingleValuedPropertyImpl
property.setRequired(true);
property.setDisplayName
(WBIMetadataDiscoveryImpl.getPropertyName("UserName"));
property.setDescription
(WBIMetadataDiscoveryImpl.getPropertyDescription("UserName"));
credentialPropertyGroup.addProperty(property);
property = new WBISingleValuedPropertyImpl("Password", String.class);
property.setRequired(true);
property.setSensitive(true); //show it as **** on display
property.setDisplayName
(WBIMetadataDiscoveryImpl.getPropertyName("Password"));
property.setDescription
(WBIMetadataDiscoveryImpl.getPropertyDescription("Password"));
credentialPropertyGroup.addProperty(property);
connProp.addProperty(credentialPropertyGroup);
property = new WBISingleValuedPropertyImpl("URL", String.class);
property.setRequired(false);
property.setDisplayName
(WBIMetadataDiscoveryImpl.getPropertyName("URL"));
property.setDescription
(WBIMetadataDiscoveryImpl.getPropertyDescription("URL"));
connProp.addProperty(property);
property = new WBISingleValuedPropertyImpl("eventTableName", String.class);
property.setRequired(true);
property.setDisplayName
(WBIMetadataDiscoveryImpl.getPropertyName("eventTableName"));
property.setDescription
(WBIMetadataDiscoveryImpl.getPropertyDescription("eventTableName"));
property.setValue("WBIA_EVENTS");
connProp.addProperty(property);
connProp.addProperty(createResourceAdapterProperties());
} catch (MetadataException e) {
throw new RuntimeException(e);
}
return connProp;
}
WBIMetadataTreeImpl samples:
WBIMetadataTreeImpl represents the object that holds the metadataObject nodes of
the tree that WebSphere Integration Developer displays for enterprise metadata
discovery.
Extend the WBIMetadataTreeImpl class and implement the methods described
below.
146
WebSphere Adapters: WebSphere Adapter Toolkit User Guide
(new TwineBallActivationSpec());
("UserCredentials");
("UserName", String.class);

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Websphere adapter toolkit

Table of Contents