Interface EJBTransportProvider

All Known Implementing Classes:
RemoteTransportProvider

public interface EJBTransportProvider
An Enterprise Bean transport provider.
Author:
David M. Lloyd
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    close(EJBReceiverContext receiverContext)
     
    getReceiver(EJBReceiverContext receiverContext, String uriScheme)
    Get an Enterprise Bean receiver for the protocol identified by the given URI scheme.
    default void
    Notify the provider instance that it has been registered with the given client context.
    boolean
    Determine whether this transport provider supports the protocol identified by the given URI scheme.
  • Method Details

    • notifyRegistered

      default void notifyRegistered(EJBReceiverContext receiverContext)
      Notify the provider instance that it has been registered with the given client context.
      Parameters:
      receiverContext - the Enterprise Beans receiver context (not null)
    • supportsProtocol

      boolean supportsProtocol(String uriScheme)
      Determine whether this transport provider supports the protocol identified by the given URI scheme.
      Parameters:
      uriScheme - the URI scheme
      Returns:
      true if this provider supports the protocol, false otherwise
    • getReceiver

      EJBReceiver getReceiver(EJBReceiverContext receiverContext, String uriScheme) throws IllegalArgumentException
      Get an Enterprise Bean receiver for the protocol identified by the given URI scheme.
      Parameters:
      receiverContext - the receiver context
      uriScheme - the URI scheme
      Returns:
      the non-null Enterprise Beans receiver
      Throws:
      IllegalArgumentException - if the protocol is not supported
    • close

      default void close(EJBReceiverContext receiverContext) throws Exception
      Throws:
      Exception