Interface DirectConnection


public interface DirectConnection
Provides the ability to exchange messages over the direct binding.

In order to use a direct connection the composite service must be exposed via <binding.direct>

Example:

 
 DirectConnection conn = factory.createConnection(address, props);
 Message<Element> request;
 ...
 Message<Element> response = conn.request("sayHello", request);
 
 

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Closes the connection, releasing any associated resources
    <T> void
    post(String operationName, Message<T> message)
    Post a one way message
    <T> Message<T>
    request(String operationName, Message<T> message)
    Invoke a request/response operation