Пример #1
0
 public DeploymentResult deployAssembly(String assemblyName, InputStream zip)
     throws RemoteException {
   OMElement request = element(DEPLOY_REQUEST);
   setAuthentication(request);
   request.addChild(elementText(ASSEMBLY_NAME, assemblyName));
   request.addChild(elementBinary(ZIP, zip));
   OMParser response = invoke(DEPLOY_REQUEST.getLocalPart(), request);
   return OMParser.parseDeploymentResult(response);
 }
Пример #2
0
 public DeploymentResult retire(AssemblyId assemblyId) throws RemoteException {
   OMElement request = element(ACTIVATE_REQUEST);
   setAuthentication(request);
   request.addChild(elementText(ASSEMBLY_NAME, assemblyId.getAssemblyName()));
   request.addChild(
       elementText(ASSEMBLY_VERSION, Integer.toString(assemblyId.getAssemblyVersion())));
   OMParser response = invoke(DEACTIVATE_REQUEST.getLocalPart(), request);
   return OMParser.parseDeploymentResult(response);
 }