![IBM WebSphere Adapter Toolkit User Manual Download Page 152](http://html1.mh-extra.com/html/ibm/websphere-adapter-toolkit/websphere-adapter-toolkit_user-manual_608688152.webp)
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
(new TwineBallActivationSpec());
WBIPropertyGroupImpl credentialPropertyGroup = new WBIPropertyGroupImpl
("UserCredentials");
credentialPropertyGroup.setDisplayName
(WBIMetadataDiscoveryImpl.getPropertyName("UserCredentials"));
credentialPropertyGroup.setDescription
(WBIMetadataDiscoveryImpl.getPropertyDescription("UserCredentials"));
WBISingleValuedPropertyImpl property = new WBISingleValuedPropertyImpl
("UserName", String.class);
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
Summary of Contents for WebSphere Adapter Toolkit
Page 2: ......
Page 6: ...iv WebSphere Adapters WebSphere Adapter Toolkit User Guide...
Page 220: ...214 WebSphere Adapters WebSphere Adapter Toolkit User Guide...
Page 224: ...218 WebSphere Adapters WebSphere Adapter Toolkit User Guide...
Page 225: ......
Page 226: ...Printed in USA...