public interface DirectConnectionFactory
Implementations intended to be invoked by the SOA platform must expose a default, no-argument constructor or a static, no-argument method named newInstance whose return type is this interface.
Example:
 DirectConnectionFactory factory = JNDIDirectConnectionFactory.newInstance();
 Map<String, Object> props = new HashMap<String, Object>();
 props.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
 props.put(Context.PROVIDER_URL, "t3://" + getHost() + ':' + getPort());
 DirectConnection conn = factory.createConnection(address, props);
 
 
JNDIDirectConnectionFactory| Modifier and Type | Method and Description | 
|---|---|
| DirectConnection | createConnection(java.lang.String servicePath, java.util.Map properties)Creates a connection | 
DirectConnection createConnection(java.lang.String servicePath, java.util.Map properties) throws java.lang.Exception
servicePath - a path identifying the target serviceproperties - connection-specific propertiesjava.lang.Exception