Package javax.jbi.management

Examples of javax.jbi.management.DeploymentException


    }

    public void validate() throws DeploymentException {
        super.validate();
        if (file == null) {
            throw new DeploymentException("You must specify a file property");
        }
        if (isAutoCreateDirectory() && !file.exists()) {
            file.mkdirs();
        }
        if (lockManager == null) {
View Full Code Here


    }

    public void validate() throws DeploymentException {
        super.validate();
        if (directory == null) {
            throw new DeploymentException("You must specify the directory property");
        }
        if (isAutoCreateDirectory()) {
            directory.mkdirs();
        }
        if (!directory.isDirectory()) {
            throw new DeploymentException("The directory property must be a directory but was: " + directory);
        }
    }
View Full Code Here

    }
   
    public void validate() throws DeploymentException {
        super.validate();
        if (resourceAdapter == null) {
            throw new DeploymentException("resourceAdapter must be set");
        }
        if (activationSpec == null) {
            throw new DeploymentException("activationSpec must be set");
        }
    }
View Full Code Here

    }

    public void validate() throws DeploymentException {
        super.validate();
        if (targetInterface == null && targetService == null && targetUri == null) {
            throw new DeploymentException("targetInterface, targetService or targetUri should be specified");
        }
    }
View Full Code Here

                pendingComponents.put(tmpDir, entry);
            }
        } catch (Exception e) {
            String errStr = "Failed to update Component: " + componentName;
            LOG.error(errStr, e);
            throw new DeploymentException(errStr, e);
        }
    }
View Full Code Here

            installationService.doInstallSharedLibrary(tmpDir, root.getSharedLibrary());
            checkPendingComponents();
        } catch (Exception e) {
            String errStr = "Failed to update SharedLibrary: " + libraryName;
            LOG.error(errStr, e);
            throw new DeploymentException(errStr, e);
        }
    }
View Full Code Here

                pendingSAs.put(tmpDir, entry);
            }
        } catch (Exception e) {
            String errStr = "Failed to update Service Assembly: " + name;
            LOG.error(errStr, e);
            throw new DeploymentException(errStr, e);
        }
    }
View Full Code Here

        msg.setTask(task);
        msg.setResult("FAILED");
        msg.setType("ERROR");
        msg.setException(e);
        msg.setMessage(info);
        return new DeploymentException(ManagementSupport.createFrameworkMessage(msg, componentResults));
    }
View Full Code Here

                        deploymentService.undeploy(entry.name);
                    }
                } catch (Exception e) {
                    String errStr = "Failed to update service assembly: " + entry.name;
                    LOG.error(errStr, e);
                    throw new DeploymentException(errStr, e);
                }
            }
        } finally {
            container.getBroker().resume();
        }
View Full Code Here

                // assume it's a URL
                try {
                    URL url = new URL(location);
                    String fileName = url.getFile();
                    if (fileName == null) {
                        throw new DeploymentException("Location: " + location + " is not an archive");
                    }
                    file = FileUtil.unpackArchive(url, tmpRoot);
                } catch (MalformedURLException e) {
                    throw new DeploymentException(e);
                }
            }
            if (FileUtil.archiveContainsEntry(file, DescriptorFactory.DESCRIPTOR_FILE)) {
                tmpDir = FileUtil.createUniqueDirectory(tmpRoot, file.getName());
                FileUtil.unpackArchive(file, tmpDir);
                if (LOG.isDebugEnabled()) {
                    LOG.debug("Unpacked archive " + location + " to " + tmpDir);
                }
            }
        } catch (IOException e) {
            throw new DeploymentException(e);
        }
        return tmpDir;
    }
View Full Code Here

TOP

Related Classes of javax.jbi.management.DeploymentException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.