/** * {@inheritDoc} * @see DeployableContainer#deploy(Descriptor) */ @Override public void deploy(Descriptor descriptor) throws DeploymentException { if (descriptor == null) throw new DeploymentException("Could not deploy a null descriptor"); try { embedded.deploy(descriptor); } catch (Throwable t) { throw new DeploymentException("Could not undeploy the application: " + t.getMessage(), t); } }
/** * {@inheritDoc} * @see DeployableContainer#deploy(Descriptor) */ @Override public void deploy(Descriptor descriptor) throws DeploymentException { if (descriptor == null) throw new DeploymentException("Could not deploy a null descriptor"); try { embedded.deploy(descriptor); } catch (Throwable t) { throw new DeploymentException("Could not deploy the application: " + t.getMessage(), t); } }
/** * {@inheritDoc} * @see DeployableContainer#deploy(Descriptor) */ @Override public void deploy(Descriptor descriptor) throws DeploymentException { if (descriptor == null) throw new DeploymentException("Could not deploy a null descriptor"); try { embedded.deploy(descriptor); } catch (Throwable t) { throw new DeploymentException("Could not deploy the application: " + t.getMessage(), t); } }
/** * {@inheritDoc} * @see DeployableContainer#deploy(Archive) */ @Override public ProtocolMetaData deploy(final Archive<?> archive) throws DeploymentException { if (archive == null) throw new DeploymentException("Could not deploy a null application"); if (!(ResourceAdapterArchive.class.isInstance(archive))) throw new DeploymentException("Could not deploy a non resource adapter application"); try { embedded.deploy(ResourceAdapterArchive.class.cast(archive)); } catch (Throwable t) { throw new DeploymentException("Could not deploy the application: " + t.getMessage(), t); } // Invoke locally return new ProtocolMetaData(); }
/** * {@inheritDoc} * @see DeployableContainer#deploy(Archive) */ @Override public ProtocolMetaData deploy(final Archive<?> archive) throws DeploymentException { if (archive == null) throw new DeploymentException("Could not deploy a null application"); if (!(ResourceAdapterArchive.class.isInstance(archive))) throw new DeploymentException("Could not deploy a non resource adapter application"); try { embedded.deploy(ResourceAdapterArchive.class.cast(archive)); } catch (Throwable t) { throw new DeploymentException("Could not deploy the application: " + t.getMessage(), t); } // Invoke locally return new ProtocolMetaData(); }
/** * {@inheritDoc} * @see DeployableContainer#deploy(Archive) */ @Override public ProtocolMetaData deploy(final Archive<?> archive) throws DeploymentException { if (archive == null) throw new DeploymentException("Could not deploy a null application"); if (!(ResourceAdapterArchive.class.isInstance(archive))) throw new DeploymentException("Could not deploy a non resource adapter application"); try { embedded.deploy(ResourceAdapterArchive.class.cast(archive)); } catch (Throwable t) { throw new DeploymentException("Could not deploy the application: " + t.getMessage(), t); } // Invoke locally return new ProtocolMetaData(); }