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 > Outbound support > Implementing outbound support
javax.resource.cci.ConnectionSpec
Clients use a javax.resource.cci.ConnectionSpec instance to pass request-specific connection properties to the getConnection method of the ConnectionFactory.
To add EIS request-specific properties, the resource adapter should implement the ConnectionSpec interface directly. The sample below extends WBIConnectionRequestInfo to inherit the properties userName and password, and then adds its own EIS-specific properties.
public class <AdapterPrefixName>ConnectionSpec extends WBIConnectionRequestInfo implements ConnectionSpec { private boolean xa; public <AdapterPrefixName>ConnectionSpec(String userid, String password, boolean xa) { setUserid(userid); setPassword(password); this.xa = xa;} }
Related concepts: