Introduction to the Direct Binding Invocation API

The different packages used in the Direct Binding Invocation API are as follows:

  • oracle.soa.management.facade.Locator

    The oracle.soa.management.facade.Locator interface exposes a method, createConnection, which returns a direct connection. The Locator exposes the method shown in the following example for returning the DirectConnection.

    import java.util.Map;
    public interface DirectConnectionFactory {
        DirectConnection createDirectConnection(CompositeDN compositeDN,
     String serviceName) throws Exception;
    

    You can use the LocatorFactory implementation to obtain the DirectConnection, as shown in the following example:

    Hashtable jndiProps = new Hashtable();
    jndiProps.put(Context.PROVIDER_URL, "t3://" + hostname + ':' + portname + "/soa-infra");
    jndiProps.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
    jndiProps.put(Context.SECURITY_PRINCIPAL,"weblogic");
    jndiProps.put(Context.SECURITY_CREDENTIALS,"welcome1");
    jndiProps.put("dedicated.connection","true");
    Locator locator = LocatorFactory.createLocator(jndiProps);
    CompositeDN compositedn = new CompositeDN(domainName, compositename, version);
    String serviceName = "HelloEntry";
    return locator.createDirectConnection(compositedn, serviceName);
    
  • oracle.soa.api.invocation.DirectConnection

    The DirectConnection interface invokes a composite service using direct binding. For more information, see Java API Reference for Oracle SOA Suite Infrastructure Management.

  • oracle.soa.api.message.Message

    The Message interface encapsulates the data exchanged. For more information, see Java API Reference for Oracle SOA Suite Infrastructure Management.