public class JAXRPCUtil extends JAXRPCHelper
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.debug, serverFailed, SMS_SERVICE, validRemoteURL
Constructor and Description |
---|
JAXRPCUtil() |
Modifier and Type | Method and Description |
---|---|
static Object |
getRemoteStub(String serviceName)
Returns a valid JAXRPC end point for the given service name.
|
protected static Object |
getServiceEndPoint(String iurl) |
protected static Object |
getValidStub(String serviceName) |
static void |
serverFailed(String serviceName)
Sets the service to be failed.
|
getValidServerURL, getValidURL, isServerValid
public static Object getRemoteStub(String serviceName) throws RemoteException
java.rmi.RemoteException
.RemoteException
public static void serverFailed(String serviceName)
protected static Object getValidStub(String serviceName) throws RemoteException
RemoteException
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.