Examples of DeploymentSession


Examples of com.sun.enterprise.tools.deployment.backend.DeploymentSession

  String clientCode = null;
  Log.print(this,localStrings.getLocalString(
    "enterprise.tools.deployment.main.deploytool.deploy_command",
    "Deploy {0} on {1}", msg));
  JarInstaller backend = this.getServerManager().getServerForName(serverName);
  DeploymentSession deploymentSessionToUse = null;
  if (deploymentSession == null) {
      deploymentSessionToUse = this.getServerManager().createDeploymentSession(serverName);
  } else {
      deploymentSessionToUse = deploymentSession;
  }
 
  FileInputStream fis = new FileInputStream(appArchiveFile);
  DataInputStream dis = new DataInputStream(fis);
  byte[] jarData = new byte[(int) appArchiveFile.length()];
  dis.readFully(jarData);
  dis.close();
  fis.close();
  clientCode = backend.deployApplication(jarData, applicationName, deploymentSessionToUse);
  Log.print(this, localStrings.getLocalString(
                "enterprise.tools.deployment.main.clientcodeat",
                "client code at {0}", new Object[] {clientCode}));
  if (clientCode != null && clientCodeFile != null) {
      writeClientJarToFile(clientCode, clientCodeFile);
      deploymentSessionToUse.notification(new NotificationEvent(this, DeploymentSession.CLIENT_CODE_RETURNED, this));
      deploymentSessionToUse.setStatusMessage(localStrings.getLocalString(
                    "enterprise.tools.deployment.main.clientcodefordeployedapplicationsavedtofile",
                    "Client code for the deployed application {0} saved to {1}", new Object[] {applicationName, clientCodeFile}));
  }
    }
View Full Code Here

Examples of com.sun.enterprise.tools.deployment.backend.DeploymentSession

    */
    public DeploymentSession createDeploymentSession(String serverName)
        throws Exception
    {
  try {
      DeploymentSession ds = new DeploymentSessionImpl();
      PortableRemoteObject.exportObject(ds);
      Tie servantsTie = javax.rmi.CORBA.Util.getTie(ds);
      servantsTie.orb(ORBManager.getORB());
      return ds;
  } catch (Throwable t) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.