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 Details

    • createConnection

      DirectConnection createConnection(String servicePath, Map<String,Object> properties) throws Exception
      Creates a connection
      Parameters:
      servicePath - a path identifying the target service
      properties - connection-specific properties
      Returns:
      a direct binding connection
      Throws:
      Exception