本文整理了Java中org.glassfish.internal.deployment.Deployment.getBuilder()
方法的一些代码示例,展示了Deployment.getBuilder()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Deployment.getBuilder()
方法的具体详情如下:
包路径:org.glassfish.internal.deployment.Deployment
类名称:Deployment
方法名:getBuilder
暂无
代码示例来源:origin: org.glassfish.ejb/ejb-container
ExtendedDeploymentContext dc = deployment.getBuilder(
_logger, params, report).source(app).build();
dc.addTransientAppMetaData(DatabaseConstants.JTA_DATASOURCE_JNDI_NAME_OVERRIDE, resourceName);
代码示例来源:origin: org.glassfish.main.ejb/ejb-full-container
getService(ActionReport.class, "plain");
Deployment deployment = _ejbContainerUtil.getDeployment();
ExtendedDeploymentContext dc = deployment.getBuilder(
logger, params, report).source(app).build();
dc.addTransientAppMetaData(DatabaseConstants.JTA_DATASOURCE_JNDI_NAME_OVERRIDE, resourceName);
代码示例来源:origin: org.glassfish.main.core/kernel
context = deployment.getBuilder(logger, params, report).source(archive).archiveHandler(archiveHandler).build(initialContext);
} catch (IOException e) {
throw new RuntimeException(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
ExtendedDeploymentContext depContext = deployment.getBuilder(logger, parameters, report).source(sourceArchive).build();
代码示例来源:origin: org.glassfish.main.core/kernel
ExtendedDeploymentContext depContext = deployment.getBuilder(logger, deploymentParams, report).source(archive).build();
if (tracing!=null) {
depContext.addModuleMetaData(tracing);
代码示例来源:origin: org.glassfish.deployment/deployment-admin
ExtendedDeploymentContext deploymentContext = deployment.getBuilder(logger, this, report).source(archive).build();
代码示例来源:origin: org.glassfish.main.core/kernel
deployment.getBuilder(KernelLoggerInfo.getLogger(), commandParams, subReport).source(archive).build();
代码示例来源:origin: org.glassfish.main.core/kernel
deploymentContext = deployment.getBuilder(logger, params, report).source(source).build();
代码示例来源:origin: org.glassfish.deployment/deployment-admin
deploymentContext = deployment.getBuilder(logger, this, report).source(source).build();
} catch (IOException e) {
logger.log(Level.SEVERE, "Cannot create context for undeployment ", e);
代码示例来源:origin: org.glassfish.deployment/deployment-admin
deployment.getBuilder(logger, commandParams, report).source(archive).build();
代码示例来源:origin: org.glassfish.deployment/deployment-admin
deployment.getBuilder(logger, commandParams, report).source(source).build();
deploymentContext.getAppProps().putAll(
application.getDeployProperties());
代码示例来源:origin: fujitsu/launcher
deployment.getBuilder(logger, this, report).
source(initialContext.getSource()).archiveHandler(archiveHandler).build(initialContext);
if (tracing!=null) {
代码示例来源:origin: org.glassfish.main.core/kernel
ExtendedDeploymentContext deploymentContext = deployment.getBuilder(KernelLoggerInfo.getLogger(), parameters, subReport).source(appInfo.getSource()).build();
代码示例来源:origin: org.glassfish.deployment/deployment-admin
deployment.getBuilder(logger, this, report).
source(archive).archiveHandler(archiveHandler).build(initialContext);
if (tracing!=null) {
内容来源于网络,如有侵权,请联系作者删除!