简体   繁体   English

JCAPS部署到多个外部系统环境

[英]JCAPS deployment to multiple external system environments

Hope a few people in here are familiar with JCAPS. 希望这里的一些人熟悉JCAPS。 Coming from pure j2ee world, it is difficult to digest the deployment model that JCPAS offers. 来自纯j2ee领域,很难理解JCPAS提供的部署模型。 While creating deployment profile, we need to map the resources (such as jdbc, webservice connector) to external systems. 创建部署配置文件时,我们需要将资源(例如jdbc,webservice连接器)映射到外部系统。 External systems are predefined with the target server ip, port, db name, credentials etc(in case of jdbc). 外部系统是使用目标服务器的IP,端口,数据库名称,凭据等(对于jdbc)预定义的。 So the problem is an EAR built for test environment can not be deployed to production environment. 因此问题是为测试环境构建的EAR无法部署到生产环境。

In simpler applications we could store database/credentials etc on to property files and hence EAR built for UAT could be deployed to Production with out any change. 在更简单的应用程序中,我们可以将数据库/凭据等存储到属性文件中,因此,为UAT构建的EAR无需进行任何更改就可以部署到Production。

Is there a similar strategy available for JCAPS by which EARs built against an environment can be promoted to another seamlessly? JCAPS是否有类似的策略可用来将针对环境构建的EAR无缝地提升到另一个策略?

In JCAPS the Deployment Profile (DP) is still a generic layer; 在JCAPS中,Deployment Profile(DP)仍然是通用层。

1) as developper you configure your (dev) properties in the Connectivity Map (CM) and the Environment External Application (EA) inbound and outbound properties; 1)开发人员在连接图(CM)和环境外部应用程序(EA)的入站和出站属性中配置(dev)属性;

2) then you extract the configuration into a file : asadmin extract-caps-application-configuration myear.ear 2)然后将配置提取到文件中: asadmin extract-caps-application-configuration myear.ear

3) and upload this file to your testing/prod Glassfish: asadmin import-caps-configuration --host %HOST% --port %PORT% --user admin --passwordfile ...\\passwordfile caps-config 3)将此文件上传到您的测试/产品Glassfish: asadmin import-caps-configuration --host %HOST% --port %PORT% --user admin --passwordfile ...\\passwordfile caps-config

4) in Glassfish\\Common Task\\CAPS\\Env and CM Override you adjust the properties according to the environment! 4)在Glassfish\\Common Task\\CAPS\\Env and CM Override您可以根据环境调整属性! (and restart the ear) (并重新启动耳朵)

5) enjoy JCAPS efficiency [optional] 5)享受JCAPS的效率[可选]

all this process is summarized in Application Configuration - JCAPS 6 screencast 应用程序配置-JCAPS 6屏幕录像中总结了所有这些过程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM