Package oracle.soa.api.invocation
Interface DirectConnectionFactory
- All Known Implementing Classes:
JNDIDirectConnectionFactory
public interface DirectConnectionFactory
Creates direct binding connections
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);
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncreateConnection(String servicePath, Map<String, Object> properties) Creates a connection
-
Method Details
-
createConnection
DirectConnection createConnection(String servicePath, Map<String, Object> properties) throws ExceptionCreates a connection- Parameters:
servicePath- a path identifying the target serviceproperties- connection-specific properties- Returns:
- a direct binding connection
- Throws:
Exception
-