IBM WebSphere Adapters User Manual
Page 151
TwineBallConfigurationProperties.getTwineBallConfigurationProperties();
TwineBallResourceAdapter ra =
new TwineBallResourceAdapter();
WBIPropertyGroupImpl adapterProp =
(WBIPropertyGroupImpl) EMDUtil.getPropertyGroup(ra);
propGroup.addProperty(adapterProp);
if (getAppliedProperties() != null)
EMDUtil.copyValues(getAppliedProperties(), propGroup);
} catch (MetadataException e) {
throw new RuntimeException(e);
}
return propGroup;
}
createResourceAdapterProperties
The createResourceAdapterProperties method returns an instance of
PropertyGroup
that represents properties you can configure for the
ResourceAdapter
bean. The getPropertyGroup() method, provided in the EMDUtil
class, fetches the properties for the base class WBIResourceAdapter bean. Then the
enterprise metadata discovery implementation can add its own specific properties
to the ResourceAdapter bean class.
public PropertyGroup createResourceAdapterProperties() {
TwineBallResourceAdapter ra = new TwineBallResourceAdapter();
WBIPropertyGroupImpl adapterProp = null;
try {
adapterProp = (WBIPropertyGroupImpl) EMDUtil.getPropertyGroup(ra);
} catch (Exception e) {
throw new NullPointerException(e.getMessage());
}
return adapterProp;
}
createManagedConnectionFactoryProperties
The createManagedConnectionFactoryProperties method returns an instance of
PropertyGroup
that represents properties that you can configure for the
ManagedConnectionFactory
bean. The getPropertyGroup() method, provided in the
EMDUtil
class, fetches the properties for the base class
WBIManagedConnectionFactory
bean. As with the ResourceAdapter bean, the
enterprise metadata discovery implementation can add its own specific properties
to the ManagedConnectionFactory bean class.
public PropertyGroup createManagedConnectionFactoryProperties() {
WBIPropertyGroupImpl connProp = null;
try {
connProp = ((WBIPropertyGroupImpl)
EMDUtil.getPropertyGroup(((WBIOutboundConnectionTypeImpl)
this.getOutboundConnectionType()).getManagedConnectionFactoryJavaBean()));
} catch (MetadataException e) {
throw new RuntimeException(e.getMessage());
}
return connProp;
}
WBIInboundConnectionConfigurationImpl samples:
You use this class to specify inbound connection configuration properties,
including those for ActivationSpecWithXid, for your enterprise metadata discovery
implementation.
WebSphere Adapter development overview
145