Introduction to the Direct Binding Invocation API
The different packages used in the Direct Binding Invocation API are as follows:
- 
                        oracle.soa.management.facade.LocatorThe oracle.soa.management.facade.Locatorinterface exposes a method,createConnection, which returns a direct connection. TheLocatorexposes the method shown in the following example for returning theDirectConnection.import java.util.Map; public interface DirectConnectionFactory { DirectConnection createDirectConnection(CompositeDN compositeDN, String serviceName) throws Exception;You can use the LocatorFactoryimplementation to obtain theDirectConnection, 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.DirectConnectionThe DirectConnectioninterface invokes a composite service using direct binding. For more information, see Java API Reference for Oracle SOA Suite Infrastructure Management.
- 
                        oracle.soa.api.message.MessageThe Messageinterface encapsulates the data exchanged. For more information, see Java API Reference for Oracle SOA Suite Infrastructure Management.