Ibm WebSphere Adapters Manual de usuario Pagina 152

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 226
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 151
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
Vista de pagina 151
1 2 ... 147 148 149 150 151 152 153 154 155 156 157 ... 225 226

Comentarios a estos manuales

Sin comentarios