Interface RemoteServiceProgrammatic

  • All Known Implementing Classes:
    ApplicationConfig.ProgrammaticStatelessRemoteInterfaceEndpoint

    public interface RemoteServiceProgrammatic
    Remote intefrace used with programmatic endpoints MUST declare all methods from Endpoint. This is a must because implementation can call any of these methods and declared endpoint must have implementation for all of these methods.

    Failure to do so would end with an Exception thrown during runtime, because invoked method (from Endpoint wouldn't be found in instance provided by EJB container.

    Author:
    Pavel Bucek
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onClose​(jakarta.websocket.Session session, jakarta.websocket.CloseReason closeReason)  
      void onError​(jakarta.websocket.Session session, java.lang.Throwable thr)  
      void onOpen​(jakarta.websocket.Session session, jakarta.websocket.EndpointConfig config)  
    • Method Detail

      • onOpen

        void onOpen​(jakarta.websocket.Session session,
                    jakarta.websocket.EndpointConfig config)
      • onClose

        void onClose​(jakarta.websocket.Session session,
                     jakarta.websocket.CloseReason closeReason)
      • onError

        void onError​(jakarta.websocket.Session session,
                     java.lang.Throwable thr)