有没有办法在WebSphere和OracleAS中自动化EAR部署?

时间:2023-01-20 20:34:30

I am looking for a solution to automate EAR deployment for OracleAS and WebSphere application servers. Can you guys suggest some open source solution for this?

我正在寻找一种自动化OracleAS和WebSphere应用服务器的EAR部署的解决方案。你们可以为此建议一些开源解决方案吗?

Thanks, Venkat

7 个解决方案

#1


For Websphere: http://publib.boulder.ibm.com/infocenter/wasinfo/v5r1//index.jsp?topic=/com.ibm.websphere.base.doc/info/aes/javadoc/ae/com/ibm/websphere/ant/tasks/package-summary.html

对于Websphere:http://publib.boulder.ibm.com/infocenter/wasinfo/v5r1//index.jsp?topic=/com.ibm.websphere.base.doc/info/aes/javadoc/ae/com/ibm /websphere/ant/tasks/package-summary.html

There is wsanttasks, which is a jar for ant, which will allow you to use new tasks like wsdeploy.

有一个wsanttasks,它是一个用于ant的jar,它允许你使用像wsdeploy这样的新任务。

An e.g: http://www.javaworld.com/javaforums/showflat.php?Cat=&Board=xmljava&Number=24868&page=1&view=collapsed&sb=5&o=&fpart=1

例如:http://www.javaworld.com/javaforums/showflat.php?Cat =&Board = xmljava&Number = 24868&page = 1&view=collapsed&sb = 5&o =&fpart = 1

#2


You can script Websphere administrative tasks using JACL or Jython.

您可以使用JACL或Jython编写Websphere管理任务的脚本。

Here's some samples: http://www.ibm.com/developerworks/websphere/library/samples/SampleScripts.html

以下是一些示例:http://www.ibm.com/developerworks/websphere/library/samples/SampleScripts.html

#3


In WAS 8.5, I came across this Option Called,

在WAS 8.5中,我遇到了这个选项,

"Monitored Directory Deployment". Below are the Steps

“受监控的目录部署”。以下是步骤

Use the Global deployment settings page of an administrative console to set monitored directory values.

使用管理控制台的“全局部署设置”页面设置受监控的目录值。

1) Click Applications > Global deployment settings.

1)单击应用程序>全局部署设置。

2) To enable monitored directory deployment, select Monitor directory to automatically deploy applications.

2)要启用受监视目录部署,请选择“监视目录”以自动部署应用程序。

3) To disable monitored directory deployment, clear Monitor directory to automatically deploy applications.

3)要禁用受监视的目录部署,请清除Monitor目录以自动部署应用程序。

4) To change the monitored directory path, specify a new value for Monitored directory. Ensure that the directory that you specified for Monitored directory exists. The product does not create the directory for you.

4)要更改受监视的目录路径,请为Monitored目录指定新值。确保您为Monitored目录指定的目录存在。该产品不会为您创建目录。

To change the polling interval, specify the number of seconds for Polling interval.

要更改轮询间隔,请指定轮询间隔的秒数。

5) Click Apply.

5)单击“应用”。

#4


I assume you are talking about programatically deploying your EARs to the AS, so that you can later automate the process.

我假设您正在讨论以编程方式将您的EAR部署到AS,以便您以后可以自动执行该过程。

For WebSphere: checkout the WebSphere Control Program

对于WebSphere:checkout WebSphere Control Program

For Oracle: use OC4J which enables you to integrate with ant scripts

对于Oracle:使用OC4J,它使您能够与ant脚本集成

#5


Well after trying to get Cargo working with the Maven plugin and WAS 8.5 container (http://cargo.codehaus.org/WebSphere+8.5.x), I finally gave up and figured I would just explore using the ant tasks from Maven.

好吧,在尝试让Cargo使用Maven插件和WAS 8.5容器(http://cargo.codehaus.org/WebSphere+8.5.x)之后,我终于放弃了,并且想到我将使用Maven的ant任务进行探索。

Then I came across the "Monitor directory to automatically deploy applications" setting (http://pic.dhe.ibm.com/infocenter/wasinfo/v8r5/topic/com.ibm.websphere.nd.doc/ae/urun_app_global_deployment.html). Copy an EAR into the designated folder and WAS will deploy it.

然后我遇到了“Monitor目录以自动部署应用程序”设置(http://pic.dhe.ibm.com/infocenter/wasinfo/v8r5/topic/com.ibm.websphere.nd.doc/ae/urun_app_global_deployment.html )。将EAR复制到指定的文件夹中,WAS将部署它。

The WebSphere server needed to be re-started, and its folder is set to ${USER_INSTALL_ROOT}/monitoredDeployableApps by default, but it will look in servers/server1 in that folder (for base servers; deployment managers are a different animal)

需要重新启动WebSphere服务器,默认情况下其文件夹设置为$ {USER_INSTALL_ROOT} / monitoredDeployableApps,但它将在该文件夹中的servers / server1中查找(对于基本服务器;部署管理器是不同的动物)

Then you just need something to do the copy. I added the ArtifactDeployer plugin to Jenkins, modified my job configuration to run the plugin post build, and set it to deploy all ears (*/.ear) to the monitored folder (C:\IBM\WebSphere\AppServer\profiles\AppSrv01\monitoredDeployableApps\servers\server1 in my case). Of course you can set it to just copy a specific ear.

然后你只需要做一些事情来复制。我将ArtifactDeployer插件添加到Jenkins,修改了我的作业配置以运行插件后期构建,并将其设置为将所有耳朵(* /。ear)部署到受监视的文件夹(C:\ IBM \ WebSphere \ AppServer \ profiles \ AppSrv01 \在我的情况下,monitoredDeployableApps \ servers \ server1)。当然,您可以将其设置为仅复制特定的耳朵。

#6


For WebSphere Application Server(Both Standalone Installation and ND Topology) deployment you may check https://github.com/dvarounis/was-installer

对于WebSphere Application Server(独立安装和ND拓扑)部署,您可以查看https://github.com/dvarounis/was-installer

#7


What you mean by automate EAR deployment? Do you mean creating a EAR from the source code and deploying to the application server? If yes then you can use Ant to build the EAR and deploy to the application server. Maven is another option.

你自动化EAR部署是什么意思?您是指从源代码创建EAR并部署到应用程序服务器吗?如果是,则可以使用Ant构建EAR并部署到应用程序服务器。 Maven是另一种选择。

#1


For Websphere: http://publib.boulder.ibm.com/infocenter/wasinfo/v5r1//index.jsp?topic=/com.ibm.websphere.base.doc/info/aes/javadoc/ae/com/ibm/websphere/ant/tasks/package-summary.html

对于Websphere:http://publib.boulder.ibm.com/infocenter/wasinfo/v5r1//index.jsp?topic=/com.ibm.websphere.base.doc/info/aes/javadoc/ae/com/ibm /websphere/ant/tasks/package-summary.html

There is wsanttasks, which is a jar for ant, which will allow you to use new tasks like wsdeploy.

有一个wsanttasks,它是一个用于ant的jar,它允许你使用像wsdeploy这样的新任务。

An e.g: http://www.javaworld.com/javaforums/showflat.php?Cat=&Board=xmljava&Number=24868&page=1&view=collapsed&sb=5&o=&fpart=1

例如:http://www.javaworld.com/javaforums/showflat.php?Cat =&Board = xmljava&Number = 24868&page = 1&view=collapsed&sb = 5&o =&fpart = 1

#2


You can script Websphere administrative tasks using JACL or Jython.

您可以使用JACL或Jython编写Websphere管理任务的脚本。

Here's some samples: http://www.ibm.com/developerworks/websphere/library/samples/SampleScripts.html

以下是一些示例:http://www.ibm.com/developerworks/websphere/library/samples/SampleScripts.html

#3


In WAS 8.5, I came across this Option Called,

在WAS 8.5中,我遇到了这个选项,

"Monitored Directory Deployment". Below are the Steps

“受监控的目录部署”。以下是步骤

Use the Global deployment settings page of an administrative console to set monitored directory values.

使用管理控制台的“全局部署设置”页面设置受监控的目录值。

1) Click Applications > Global deployment settings.

1)单击应用程序>全局部署设置。

2) To enable monitored directory deployment, select Monitor directory to automatically deploy applications.

2)要启用受监视目录部署,请选择“监视目录”以自动部署应用程序。

3) To disable monitored directory deployment, clear Monitor directory to automatically deploy applications.

3)要禁用受监视的目录部署,请清除Monitor目录以自动部署应用程序。

4) To change the monitored directory path, specify a new value for Monitored directory. Ensure that the directory that you specified for Monitored directory exists. The product does not create the directory for you.

4)要更改受监视的目录路径,请为Monitored目录指定新值。确保您为Monitored目录指定的目录存在。该产品不会为您创建目录。

To change the polling interval, specify the number of seconds for Polling interval.

要更改轮询间隔,请指定轮询间隔的秒数。

5) Click Apply.

5)单击“应用”。

#4


I assume you are talking about programatically deploying your EARs to the AS, so that you can later automate the process.

我假设您正在讨论以编程方式将您的EAR部署到AS,以便您以后可以自动执行该过程。

For WebSphere: checkout the WebSphere Control Program

对于WebSphere:checkout WebSphere Control Program

For Oracle: use OC4J which enables you to integrate with ant scripts

对于Oracle:使用OC4J,它使您能够与ant脚本集成

#5


Well after trying to get Cargo working with the Maven plugin and WAS 8.5 container (http://cargo.codehaus.org/WebSphere+8.5.x), I finally gave up and figured I would just explore using the ant tasks from Maven.

好吧,在尝试让Cargo使用Maven插件和WAS 8.5容器(http://cargo.codehaus.org/WebSphere+8.5.x)之后,我终于放弃了,并且想到我将使用Maven的ant任务进行探索。

Then I came across the "Monitor directory to automatically deploy applications" setting (http://pic.dhe.ibm.com/infocenter/wasinfo/v8r5/topic/com.ibm.websphere.nd.doc/ae/urun_app_global_deployment.html). Copy an EAR into the designated folder and WAS will deploy it.

然后我遇到了“Monitor目录以自动部署应用程序”设置(http://pic.dhe.ibm.com/infocenter/wasinfo/v8r5/topic/com.ibm.websphere.nd.doc/ae/urun_app_global_deployment.html )。将EAR复制到指定的文件夹中,WAS将部署它。

The WebSphere server needed to be re-started, and its folder is set to ${USER_INSTALL_ROOT}/monitoredDeployableApps by default, but it will look in servers/server1 in that folder (for base servers; deployment managers are a different animal)

需要重新启动WebSphere服务器,默认情况下其文件夹设置为$ {USER_INSTALL_ROOT} / monitoredDeployableApps,但它将在该文件夹中的servers / server1中查找(对于基本服务器;部署管理器是不同的动物)

Then you just need something to do the copy. I added the ArtifactDeployer plugin to Jenkins, modified my job configuration to run the plugin post build, and set it to deploy all ears (*/.ear) to the monitored folder (C:\IBM\WebSphere\AppServer\profiles\AppSrv01\monitoredDeployableApps\servers\server1 in my case). Of course you can set it to just copy a specific ear.

然后你只需要做一些事情来复制。我将ArtifactDeployer插件添加到Jenkins,修改了我的作业配置以运行插件后期构建,并将其设置为将所有耳朵(* /。ear)部署到受监视的文件夹(C:\ IBM \ WebSphere \ AppServer \ profiles \ AppSrv01 \在我的情况下,monitoredDeployableApps \ servers \ server1)。当然,您可以将其设置为仅复制特定的耳朵。

#6


For WebSphere Application Server(Both Standalone Installation and ND Topology) deployment you may check https://github.com/dvarounis/was-installer

对于WebSphere Application Server(独立安装和ND拓扑)部署,您可以查看https://github.com/dvarounis/was-installer

#7


What you mean by automate EAR deployment? Do you mean creating a EAR from the source code and deploying to the application server? If yes then you can use Ant to build the EAR and deploy to the application server. Maven is another option.

你自动化EAR部署是什么意思?您是指从源代码创建EAR并部署到应用程序服务器吗?如果是,则可以使用Ant构建EAR并部署到应用程序服务器。 Maven是另一种选择。