Example usage for java.rmi RemoteException getMessage

List of usage examples for java.rmi RemoteException getMessage

Introduction

In this page you can find the example usage for java.rmi RemoteException getMessage.

Prototype

public String getMessage() 

Source Link

Document

Returns the detail message, including the message from the cause, if any, of this exception.

Usage

From source file:org.wso2.analytics.apim.integration.common.clients.TemplateManagerAdminServiceClient.java

public ScenarioConfigurationDTO getConfiguration(String domainName, String configurationName)
        throws RemoteException {
    try {//  ww w.ja  va2s . co  m
        return templateManagerAdminServiceStub.getConfiguration(domainName, configurationName);
    } catch (RemoteException e) {
        log.error("RemoteException", e);
        throw new RemoteException(e.getMessage(), e);
    }
}

From source file:org.wso2.analytics.apim.integration.common.clients.TemplateManagerAdminServiceClient.java

public ScenarioConfigurationInfoDTO[] getConfigurations(String domainName) throws RemoteException {
    try {//from w  ww  .j a  v a 2s.  c o  m
        return templateManagerAdminServiceStub.getConfigurationInfos(domainName);
    } catch (RemoteException e) {
        log.error("RemoteException", e);
        throw new RemoteException(e.getMessage(), e);
    }
}

From source file:org.wso2.analytics.apim.integration.common.clients.TemplateManagerAdminServiceClient.java

public String[] saveConfiguration(ScenarioConfigurationDTO templateConfigDTO) throws RemoteException {
    try {/*from  w  w w.ja v  a2  s .c om*/
        return templateManagerAdminServiceStub.saveConfiguration(templateConfigDTO);
    } catch (RemoteException e) {
        log.error("RemoteException", e);
        throw new RemoteException(e.getMessage(), e);
    }
}

From source file:org.wso2.analytics.apim.integration.common.clients.TemplateManagerAdminServiceClient.java

public boolean deleteConfiguration(String domainName, String configurationName) throws RemoteException {
    try {//w  w  w.  ja v a  2s .  c  om
        return templateManagerAdminServiceStub.deleteConfiguration(domainName, configurationName);
    } catch (RemoteException e) {
        log.error("RemoteException", e);
        throw new RemoteException(e.getMessage(), e);
    }
}

From source file:org.wso2.analytics.apim.integration.common.clients.TemplateManagerAdminServiceClient.java

public int getConfigurationsCount(String domainName) throws RemoteException {
    int count = 0;
    try {// w w w . j a  v a  2s. com
        ScenarioConfigurationInfoDTO[] configs = templateManagerAdminServiceStub
                .getConfigurationInfos(domainName);
        if (configs != null) {
            count = configs.length;
        }
        return count;
    } catch (RemoteException e) {
        log.error("RemoteException", e);
        throw new RemoteException(e.getMessage(), e);
    }
}

From source file:org.wso2.appserver.integration.common.clients.TemplateManagerAdminServiceClient.java

public String[] saveConfiguration(ScenarioConfigurationDTO scenarioConfigurationDTO) throws RemoteException {
    try {/*from   ww w  .  j  a  va  2 s. c  om*/
        return templateManagerAdminServiceStub.saveConfiguration(scenarioConfigurationDTO);
    } catch (RemoteException e) {
        log.error("RemoteException", e);
        throw new RemoteException(e.getMessage(), e);
    }
}

From source file:org.wso2.appserver.integration.common.clients.TemplateManagerAdminServiceClient.java

public boolean saveStreamMapping(StreamMappingDTO[] streamMappingDTOs, String configName, String domainName)
        throws RemoteException {
    try {/*from  w  w  w.ja v a  2  s  .c om*/
        return templateManagerAdminServiceStub.saveStreamMapping(streamMappingDTOs, configName, domainName);
    } catch (RemoteException e) {
        log.error("RemoteException", e);
        throw new RemoteException(e.getMessage(), e);
    }
}

From source file:org.wso2.appserver.integration.common.clients.TemplateManagerAdminServiceClient.java

public DomainInfoDTO getDomainInfo(String domainName) throws RemoteException {
    try {/*from  ww w. java 2s .  c  om*/
        return templateManagerAdminServiceStub.getDomainInfo(domainName);
    } catch (RemoteException e) {
        log.error("RemoteException", e);
        throw new RemoteException(e.getMessage(), e);
    }
}

From source file:org.wso2.appserver.integration.common.clients.TemplateManagerAdminServiceClient.java

public DomainInfoDTO[] getAllDomainInfos() throws RemoteException {
    try {/* ww  w  .j  a v  a2  s. c  om*/
        return templateManagerAdminServiceStub.getAllDomainInfos();
    } catch (RemoteException e) {
        log.error("RemoteException", e);
        throw new RemoteException(e.getMessage(), e);
    }
}

From source file:org.wso2.appserver.integration.common.clients.WSDL2CodeClient.java

/**
 * invoke the back-end code generation methods and prompt to download the resulting zip file
 * containing generated code/*  w  ww.  j a  v a2s .c  om*/
 *
 * @param options - code generation options
 * @throws AxisFault in case of error
 */
public DataHandler codeGen(String[] options) throws AxisFault {
    try {
        CodegenDownloadData downloadData = wsdl2CodeServiceStub.codegen(options);
        if (downloadData != null)
            return downloadData.getCodegenFileData();
    } catch (RemoteException e) {
        log.error(e.getMessage(), e);
        throw new AxisFault(e.getMessage(), e);

    }
    return null;
}