org.glassfish.internal.deployment.Deployment.deploy()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(3.3k)|赞(0)|评价(0)|浏览(129)

本文整理了Java中org.glassfish.internal.deployment.Deployment.deploy()方法的一些代码示例,展示了Deployment.deploy()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Deployment.deploy()方法的具体详情如下:
包路径:org.glassfish.internal.deployment.Deployment
类名称:Deployment
方法名:deploy

Deployment.deploy介绍

暂无

代码示例

代码示例来源:origin: org.glassfish/osgi-javaee-base

try
  appInfo = deployer.deploy(dc);
  if (appInfo != null)

代码示例来源:origin: org.glassfish.fighterfish/osgi-javaee-base

try
  appInfo = deployer.deploy(dc);
  if (appInfo != null)

代码示例来源:origin: org.glassfish.ejb/ejb-container

appProps.setProperty(ServerTags.OBJECT_TYPE, DeploymentProperties.SYSTEM_ALL);
deployment.deploy(dc);

代码示例来源:origin: org.glassfish.main.ejb/ejb-full-container

appProps.setProperty(ServerTags.OBJECT_TYPE, DeploymentProperties.SYSTEM_ALL);
deployment.deploy(dc);

代码示例来源:origin: org.glassfish.main.core/kernel

appInfo = deployment.deploy(context);
} catch(Exception e) {
  logger.log(Level.SEVERE, KernelLoggerInfo.deployException, e);

代码示例来源:origin: org.glassfish.main.core/javaee-kernel

private void deployMEJB() throws IOException {
    _logger.info("Loading MEJB app on JNDI look up");
    ServerContext serverContext = habitat.getService(ServerContext.class);
    File mejbArchive = new File(serverContext.getInstallRoot(),
        "lib/install/applications/mejb.jar");
    DeployCommandParameters deployParams =
        new DeployCommandParameters(mejbArchive);
    String targetName = habitat.<Server>getService(Server.class, ServerEnvironment.DEFAULT_INSTANCE_NAME).getName();
    deployParams.target = targetName;
    deployParams.name = "mejb";
    ActionReport report = habitat.getService(ActionReport.class, "plain");
    Deployment deployment = habitat.getService(Deployment.class);
    ExtendedDeploymentContext dc = deployment.getBuilder(_logger, deployParams, report).source(mejbArchive).build();
    deployment.deploy(dc);

    if (report.getActionExitCode() != ActionReport.ExitCode.SUCCESS) {
      throw new RuntimeException("Failed to deploy MEJB app: " +
          report.getFailureCause());
    }
  }
}

代码示例来源:origin: org.glassfish.main.core/kernel

ApplicationInfo appInfo = deployment.deploy(depContext);
if (appInfo==null) {

代码示例来源:origin: org.glassfish.main.core/kernel

deployment.deploy(deployment.getSniffersFromApp(app), depContext);
loadApplicationForTenants(app, appRef, report);
if (report.getActionExitCode().equals(ActionReport.ExitCode.SUCCESS)) {

代码示例来源:origin: org.glassfish.deployment/deployment-admin

appInfo = deployment.deploy(deploymentContext);
} else {
  appInfo = deployment.deploy(deployment.prepareSniffersForOSGiDeployment(type, deploymentContext), deploymentContext);

代码示例来源:origin: org.glassfish.main.core/kernel

deploymentContext.setModulePropsMap(app.getModulePropertiesMap());
  deploymentContext.setTenant(tenant.getTenant(), app.getName());
  deployment.deploy(deployment.getSniffersFromApp(app), deploymentContext);
} else {
  logger.log(Level.SEVERE, KernelLoggerInfo.notFoundInOriginalLocation, app.getLocation());

代码示例来源:origin: org.glassfish.deployment/deployment-admin

deployment.deploy(deployment.getSniffersFromApp(app), deploymentContext);
} else {

代码示例来源:origin: fujitsu/launcher

appInfo = deployment.deploy(deploymentContext);

代码示例来源:origin: org.glassfish.deployment/deployment-admin

appInfo = deployment.deploy(deploymentContext);
} else {
  appInfo = deployment.deploy(deployment.prepareSniffersForOSGiDeployment(type, deploymentContext), deploymentContext);

相关文章