public long getCBPFileSize() { CBPInfo cbpInfo = _du.getCBPInfo(getType()); if (cbpInfo == null) throw new ContextException("CBP record not found for type " + getType()); return cbpInfo.cbp.length(); }
public long getCBPFileSize() { CBPInfo cbpInfo = _du.getCBPInfo(getType()); if (cbpInfo == null) throw new ContextException("CBP record not found for type " + getType()); return cbpInfo.cbp.length(); }
public InputStream getCBPInputStream() { CBPInfo cbpInfo = _du.getCBPInfo(getType()); if (cbpInfo == null) throw new ContextException("CBP record not found for type " + getType()); try { return new FileInputStream(cbpInfo.cbp); } catch (FileNotFoundException e) { throw new ContextException("File Not Found: " + cbpInfo.cbp, e); } }
public long getCBPFileSize() { DeploymentUnitDir.CBPInfo cbpInfo = du.getCBPInfo(getType()); if (cbpInfo == null) { throw new ContextException("CBP record not found for type " + getType()); } return cbpInfo.getCbp().length(); }
public InputStream getCBPInputStream() { CBPInfo cbpInfo = _du.getCBPInfo(getType()); if (cbpInfo == null) throw new ContextException("CBP record not found for type " + getType()); try { return new FileInputStream(cbpInfo.cbp); } catch (FileNotFoundException e) { throw new ContextException("File Not Found: " + cbpInfo.cbp, e); } }
public String getBpelDocument() { CBPInfo cbpInfo = _du.getCBPInfo(getType()); if (cbpInfo == null) throw new ContextException("CBP record not found for type " + getType()); try { String relative = getRelativePath(_du.getDeployDir(), cbpInfo.cbp).replaceAll("\\\\", "/"); if (!relative.endsWith(".cbp")) throw new ContextException("CBP file must end with .cbp suffix: " + cbpInfo.cbp); relative = relative.replace(".cbp", ".bpel"); File bpelFile = new File(_du.getDeployDir(), relative); if (!bpelFile.exists()) __log.warn("BPEL file does not exist: " + bpelFile); return relative; } catch (IOException e) { throw new ContextException("IOException in getBpelRelativePath: " + cbpInfo.cbp, e); } }
public String getBpelDocument() { CBPInfo cbpInfo = _du.getCBPInfo(getType()); if (cbpInfo == null) throw new ContextException("CBP record not found for type " + getType()); try { String relative = getRelativePath(_du.getDeployDir(), cbpInfo.cbp).replaceAll("\\\\", "/"); if (!relative.endsWith(".cbp")) throw new ContextException("CBP file must end with .cbp suffix: " + cbpInfo.cbp); relative = relative.replace(".cbp", ".bpel"); File bpelFile = new File(_du.getDeployDir(), relative); if (!bpelFile.exists()) __log.warn("BPEL file does not exist: " + bpelFile); return relative; } catch (IOException e) { throw new ContextException("IOException in getBpelRelativePath: " + cbpInfo.cbp, e); } }
public InputStream getCBPInputStream() { DeploymentUnitDir.CBPInfo cbpInfo = du.getCBPInfo(getType()); if (cbpInfo == null) { throw new ContextException("CBP record not found for type " + getType()); } try { return new FileInputStream(cbpInfo.getCbp()); } catch (FileNotFoundException e) { throw new ContextException("File Not Found: " + cbpInfo.getCbp(), e); } }
public String getBpelDocument() { DeploymentUnitDir.CBPInfo cbpInfo = du.getCBPInfo(getType()); if (cbpInfo == null) { throw new ContextException("CBP record not found for type " + getType()); } try { String relative = getRelativePath(du.getDeployDir(), cbpInfo.getCbp()). replaceAll("\\\\", "/"); if (!relative.endsWith(BPELConstants.BPEL_COMPILED_FILE_EXTENSION)) { throw new ContextException("CBP file must end with " + BPELConstants.BPEL_COMPILED_FILE_EXTENSION + " suffix: " + cbpInfo.getCbp()); } relative = relative.replace(BPELConstants.BPEL_COMPILED_FILE_EXTENSION, BPELConstants.BPEL_FILE_EXTENSION); File bpelFile = new File(du.getDeployDir(), relative); if (!bpelFile.exists()) { log.warn("BPEL file does not exist: " + bpelFile); } return relative; } catch (IOException e) { throw new ContextException("IOException in getBpelRelativePath: " + cbpInfo.getCbp(), e); } }
/** * Check whether processes in this package are already available in the process store or check * whether processes are correctly compiled. * * @param du BPEL deployment unit * @throws BPELDeploymentException if there's a error in BPEL package */ private void validateBPELPackage(DeploymentUnitDir du) throws BPELDeploymentException { DeployDocument dd = du.getDeploymentDescriptor(); for (TDeployment.Process processDD : dd.getDeploy().getProcessList()) { QName processId = Utils.toPid(processDD.getName(), du.getVersion()); if (processConfigMap.containsKey(processId)) { String logMessage = "Aborting deployment. Duplicate process ID " + processId + "."; log.error(logMessage); throw new BPELDeploymentException(logMessage); } QName processType = Utils.getProcessType(processDD); DeploymentUnitDir.CBPInfo cbpInfo = du.getCBPInfo(processType); if (cbpInfo == null) { //removeDeploymentArtifacts(deploymentContext, du); String logMessage = "Aborting deployment. Cannot find Process definition for type " + processType + "."; log.error(logMessage); throw new BPELDeploymentException(logMessage); } } }
CBPInfo cbpInfo = du.getCBPInfo(type); if (cbpInfo == null) { String errmsg = __msgs.msgDeployFailedProcessNotFound(processDD.getName(), du.getName());
CBPInfo cbpInfo = du.getCBPInfo(type); if (cbpInfo == null) { String errmsg = __msgs.msgDeployFailedProcessNotFound(processDD.getName(), du.getName());