Ibm WebSphere Adapters Manuel d'utilisateur Page 151

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 226
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 150
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
Vue de la page 150
1 2 ... 146 147 148 149 150 151 152 153 154 155 156 ... 225 226

Commentaires sur ces manuels

Pas de commentaire