This class is similar to WBIOutboundConnectionConfigurationImpl except instead

of ManagedConnectionFactory,WBIInboundConnectionConfigurationImpl handles

the ActivationSpecWithXid bean class. Youmust 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;
}

WBIMetadataTreeImplsamples:

WBIMetadataTreeImpl represents the object that holds the metadataObject nodes of

the tree that WebSphereIntegration Developer displays for enterprise metadata

discovery.

Extend the WBIMetadataTreeImpl class and implement the methods described

below.

146 WebSphereAdapters: WebSphereAdapter Toolkit User Guide