Class JAXRPCUtil


  • public class JAXRPCUtil
    extends JAXRPCHelper
    The class JAXRPCUtil provides functions to get JAXRPC stubs to a valid Identity Server. The function getRemoteStub(String serviceName) returns a JAXRPC stub to the service. It is expected that the service caches the stub and re-uses it until the server has failed. Upon server failure, the service needs to call the function serverFailed (String serviceName), and the next call to getRemoteStub(String serviceName) will check for next valid server and will return a stub that is currently active or throws java.rmi.RemoteException if no servers are available.
    • Constructor Detail

      • JAXRPCUtil

        public JAXRPCUtil()
    • Method Detail

      • getRemoteStub

        public static Object getRemoteStub​(String serviceName)
                                    throws RemoteException
        Returns a valid JAXRPC end point for the given service name. If no valid servers are found, it throws java.rmi.RemoteException.
        Throws:
        RemoteException
      • serverFailed

        public static void serverFailed​(String serviceName)
        Sets the service to be failed.
      • getServiceEndPoint

        protected static Object getServiceEndPoint​(String iurl)