本文整理了Java中org.glassfish.internal.deployment.Deployment.deploy()
方法的一些代码示例,展示了Deployment.deploy()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Deployment.deploy()
方法的具体详情如下:
包路径:org.glassfish.internal.deployment.Deployment
类名称: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);
内容来源于网络,如有侵权,请联系作者删除!