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

WBIOutboundConnectionTypeImpl samples

WBIOutboundConnectionTypeImpl represents the outbound connection types supported by the adapter. The mapping of these connection types corresponds to the managed connection factory types that are supported by the adapter. Each managed connection factory maps to an instance of outbound connection types.

Each enterprise metadata discovery implementation should extend WBIOutboundConnectionTypeImpl and implement the methods described below.


Constructor

The constructor takes the adapterType argument, and then sets the ID, and the description and display names. If the description and display names must be globalized, they can be retrieved from the resource bundle EMD.properties using the method WBIMetadataDiscoveryImpl.getString(<prop name>).

public EISSAOutboundConnectionType(WBIAdapterTypeImpl
adapterType,PropertyNameHelper helper)
throws MetadataException {
		super(adapterType, helper);
		this.helper = helper;
		setDescription("Connection to VTA system");
		setDisplayName("VTA Connection");
		setId("VTA");
	}


createOutboundConnectionConfiguration

The createOutboundConnectionConfiguration() method returns an instance of OutboundConnectionConfiguration. Each enterprise metadata discovery implementation must extend WBIOutboundConnectionConfugurationImpl and an instance of that class should be returned in this method.

public OutboundConnectionConfiguration createOutboundConnectionConfiguration() {
		
		try {
			if (conf == null)
				conf = new EISSAOutboundConnectionConfiguration(this,helper);
		} catch (Exception e) {
			throw new RuntimeException(e.getMessage(), e);
		} 	
	}

Enterprise metadata discovery implementation samples