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

WBIInboundConnectionConfigurationImpl samples

You use this class to specify inbound connection configuration properties, including those for ActivationSpecWithXid, for your enterprise metadata discovery implementation.

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 {
			
			EMDUtil util = new EMDUtil();
			connProp = (WBIPropertyGroupImpl) util.getPropertyGroup
(new EISSAActivationSpecWithXid(), helper);
			WBISingleValuedPropertyImpl namespaceProp
			= (WBISingleValuedPropertyImpl)
 connProp.getProperty("BONamespace");
			if (namespaceProp != null)
				connProp.remove(namespaceProp);
			
			WBIPropertyGroupImpl machineCredPG = 
			new WBIPropertyGroupImpl("MachineCredentials",  			helper);
			machineCredPG.setDisplayName(helper.getPropertyName
			("MachineCredentials"));
			machineCredPG.setDescription
			(helper.getPropertyDescription("MachineCredentials")); 

			WBISingleValuedPropertyImpl prop = 
			new WBISingleValuedPropertyImpl("Hostname",  			String.class);  
			prop.setRequired(true);
			prop.setDisplayName(helper.getPropertyName("HostName"));  
			prop.setDescription(helper.getPropertyDescription("HostName"));
			prop.setValue("localhost");
			machineCredPG.addProperty(prop);

			prop = new WBISingleValuedPropertyImpl("Portnumber", String.class);  
			prop.setRequired(true);
			prop.setDisplayName(helper.getPropertyName("Port"));  
			prop.setDescription(helper.getPropertyDescription("Port"));
			prop.setValue("9000");
			machineCredPG.addProperty(prop);
			
			connProp.addProperty(machineCredPG);

			if (getAppliedProperties() != null)
				util.copyValues(getAppliedProperties(), connProp,helper);
			
		} catch (Exception e) {
			throw new RuntimeException(e.getMessage(), e);
		} 
		return connProp;
	}

Enterprise metadata discovery implementation samples