IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Services and service-related functions > Access external services with adapters > Configure and using adapters > IBM WebSphere Adapters > Adapter Toolkit > Implementing code from the IBM WebSphere Adapter Toolkit > Enterprise metadata discovery general interfaces and implementation for application adapters > Enterprise metadata discovery implementation samples

WBIMetadataEditImpl samples

The enterprise metadata discovery service uses WBIMetadataEditImpl to acquire connectionTypes, which contains editable properties for ResourceAdapter, ManagedConnectionFactory, or ActivationSpecWithXid.

The enterprise metadata discovery tooling creates an instance of WBIMetadataEditImpl during the boot strap process. Along with the name of the MetadataDiscovery class, WBIMetadataEditImpl is specified in the discovery-service.xml file. If for any reason WBIMetadataEditImpl cannot be instantiated, then enterprise metadata discovery is not selectable in theIBM Integration Designer tooling.


getOutboundConnectionType

The getOutboundConnectionType() method returns an instance of OutboundConnectionType with an input name.

public OutboundConnectionType getOutboundConnectionType(String arg0)
			throws MetadataException {
		return adapterType.getOutboundConnectionTypes()[1];
	}


getInboundConnectionType

The getInboundConnectionType() method returns an instance of InboundConnectionType with an input name.

public InboundConnectionType getInboundConnectionType(String arg0)
			throws MetadataException {
		return adapterType.getInboundConnectionTypes()[0];	
	}

Enterprise metadata discovery implementation samples