List of usage examples for java.rmi RemoteException getMessage
public String getMessage()
From source file:org.wso2.es.integration.common.clients.HandlerManagementServiceClient.java
public void setHandlerCollectionLocation(String location) throws RemoteException, ExceptionException { try {//from www. j a v a2 s . com handlerManagementServiceStub.setHandlerCollectionLocation(location); } catch (RemoteException e) { String msg = "Fails to get Handler Collection Location"; log.error(msg + " " + e.getMessage()); throw new RemoteException(msg, e); } catch (ExceptionException e) { String msg = "Fails to get Handler Collection Location"; log.error(msg + " " + e.getMessage()); throw new ExceptionException(msg, e); } }
From source file:org.wso2.es.integration.common.clients.InfoServiceAdminClient.java
public SubscriptionBean subscribe(String path, String endpoint, String eventName, String sessionId) throws RemoteException { SubscriptionBean bean = null;/*from w w w .j a v a 2s . c om*/ try { bean = infoAdminServiceStub.subscribe(path, endpoint, eventName, sessionId); } catch (RemoteException remoteException) { log.error("infoAdminServiceStub subscription fail " + remoteException.getMessage()); throw new RemoteException("infoAdminServiceStub subscription fail " + remoteException.getMessage()); } catch (RegistryExceptionException registryException) { log.error("infoAdminServiceStub subscription fail " + registryException.getMessage()); throw new AxisFault("infoAdminServiceStub subscription fail " + registryException.getMessage()); } return bean; }
From source file:org.wso2.es.integration.common.clients.LifeCycleManagementClient.java
public boolean parseConfiguration(String configuration) throws RemoteException, LifeCycleManagementServiceExceptionException { try {/*from w w w . ja v a 2s . com*/ return lifeCycleManagementServiceStub.parseConfiguration(configuration); } catch (RemoteException e) { log.error("Cannot parse the configuration : " + e.getMessage()); throw new RemoteException("Cannot parse the configuration : ", e); } catch (LifeCycleManagementServiceExceptionException e) { log.error("Cannot parse the configuration : " + e.getMessage()); throw new LifeCycleManagementServiceExceptionException("Cannot parse the configuration : ", e); } }
From source file:org.wso2.es.integration.common.clients.ListMetaDataServiceClient.java
public ServiceBean listServices(String criteria) throws RemoteException, ResourceAdminServiceExceptionException { ServiceBean serviceBean = null;// w w w. j av a 2s . c o m try { serviceBean = listMetadataServiceStub.listservices(criteria); } catch (RemoteException e) { log.error("Cannot list services : " + e.getMessage()); throw new RemoteException("Service listing error : ", e); } catch (ListMetadataServiceRegistryExceptionException e) { log.error("Service listing error : " + e.getMessage()); throw new ResourceAdminServiceExceptionException("Service listing error : ", e); } return serviceBean; }
From source file:org.wso2.es.integration.common.clients.ListMetaDataServiceClient.java
public WSDLBean listWSDLs() throws RemoteException, ResourceAdminServiceExceptionException { WSDLBean wsdlBean = null;// w w w . jav a2 s .co m try { wsdlBean = listMetadataServiceStub.listwsdls(); } catch (RemoteException e) { log.error("Cannot list wsdls : " + e.getMessage()); throw new RemoteException("WSDLs listing error : ", e); } catch (ListMetadataServiceRegistryExceptionException e) { log.error("Cannot list wsdls : " + e.getMessage()); throw new ResourceAdminServiceExceptionException("WSDLs listing error : ", e); } return wsdlBean; }
From source file:org.wso2.es.integration.common.clients.ListMetaDataServiceClient.java
public PolicyBean listPolicies() throws RemoteException, ResourceAdminServiceExceptionException { PolicyBean policyBean = null;//ww w . j a v a 2s.co m try { policyBean = listMetadataServiceStub.listpolicies(); } catch (RemoteException e) { log.error("Cannot list policies : " + e.getMessage()); throw new RemoteException("Policy listing error : ", e); } catch (ListMetadataServiceRegistryExceptionException e) { log.error("Cannot list policies : " + e.getMessage()); throw new ResourceAdminServiceExceptionException("Policy listing error : ", e); } return policyBean; }
From source file:org.wso2.es.integration.common.clients.ListMetaDataServiceClient.java
public SchemaBean listSchemas() throws RemoteException, ResourceAdminServiceExceptionException { SchemaBean schemaBean = null;//from w ww. j a v a2 s. co m try { schemaBean = listMetadataServiceStub.listschema(); } catch (RemoteException e) { log.error("Cannot list schemas : " + e.getMessage()); throw new RemoteException("Schema listing error : ", e); } catch (ListMetadataServiceRegistryExceptionException e) { log.error("Cannot list schemas : " + e.getMessage()); throw new ResourceAdminServiceExceptionException("Schema listing error : ", e); } return schemaBean; }
From source file:org.wso2.identity.integration.common.clients.application.mgt.ApplicationManagementServiceClient.java
/** * * @param serviceProvider/* w w w. ja v a2 s. c o m*/ * @throws Exception */ public void createApplication(ServiceProvider serviceProvider) throws Exception { try { if (debugEnabled) { log.debug("Registering Service Provider " + serviceProvider.getApplicationName()); } stub.createApplication(serviceProvider); } catch (RemoteException e) { log.error(e.getMessage(), e); throw new Exception(e.getMessage()); } catch (IdentityApplicationManagementServiceIdentityApplicationManagementException e) { log.error(e.getMessage(), e); throw new Exception(e.getMessage()); } }
From source file:org.wso2.identity.integration.common.clients.application.mgt.ApplicationManagementServiceClient.java
/** * * @return//from ww w . j av a 2 s . c o m * @throws Exception */ public ApplicationBasicInfo[] getAllApplicationBasicInfo() throws Exception { try { return stub.getAllApplicationBasicInfo(); } catch (RemoteException e) { log.error(e.getMessage(), e); throw new Exception(e.getMessage()); } catch (IdentityApplicationManagementServiceIdentityApplicationManagementException e) { log.error(e.getMessage(), e); throw new Exception(e.getMessage()); } }
From source file:org.wso2.identity.integration.common.clients.application.mgt.ApplicationManagementServiceClient.java
/** * * @param serviceProvider/*from w w w .j a v a 2 s. co m*/ * @throws Exception */ public void updateApplicationData(ServiceProvider serviceProvider) throws Exception { try { stub.updateApplication(serviceProvider); } catch (RemoteException e) { log.error(e.getMessage(), e); throw new Exception(e.getMessage()); } catch (IdentityApplicationManagementServiceIdentityApplicationManagementException e) { log.error(e.getMessage(), e); throw new Exception(e.getMessage()); } }