在 WLS 10.3.3 中使用命令行重新启动企业应用程序

发布于 2024-12-21 08:24:14 字数 475 浏览 1 评论 0原文

我通常通过在域文件夹中启动 startWebLogic.cmd 从命令行启动 WLS 10.3.3 的开发版本。

然后,正如开发人员通常所做的那样,我更改了 Java EE 应用程序的源代码并使用 ant 重新构建它。然后,我转到 WLS 管理控制台 ->我的域名 ->部署并选择我的 Java EE 应用程序,然后单击更新按钮以“刷新”应用程序。我已经将其设置为应用程序的路径指向我的 Java EE 应用程序的项目目录,该目录下面有 META-INF、src 和 web。我的类部署在 web/WEB-INF/classes 下。

我希望能够在重建应用程序后使用 dos 来“刷新”应用程序。我认为每次我只想刷新此应用程序时都不必打开 WLS 管理控制台。

有人可以解释一下我如何使用 dos 来“刷新”(停止、启动或任何将在 WLS 上更新它的内容)WLS 上的应用程序吗?

(附带说明 - 我的 WLS 服务器当前配置为仅接受“HTTPS”协议通信)

I typically start up my development version of WLS 10.3.3 from the command line by launching startWebLogic.cmd in my domain folder.

Then, as developers typically do, I make changes to the source of my Java EE app and rebuild it using ant. Then, I go to the WLS Administration Console -> mydomain -> deployments and select my Java EE app and click the Update button to "refresh" the application. I've set it up such that the path of the application points against my Java EE app's project directory, which has META-INF, src and web underneath it. My classes are deployed underneath web/WEB-INF/classes.

I'd like to be able to use dos to "refresh" the application after I rebuild it. I figure I don't have to open up the WLS Admin Console everytime I just want to refresh this application.

Could someone please explain how I can use dos to "refresh" (stop, start, or whatever will update it on WLS) the application on WLS?

(as a side note - my WLS server is currently configured to only accept "HTTPS" protocol communication)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

ヤ经典坏疍 2024-12-28 08:24:14

使用 WLST。在 Linux 上,您将使用 wlst.sh。在 Windows 上,我相信它是 wlst.cmd。

SOME_PATH/wlserver_10.3/common/bin/wlst.sh

然后使用凭据连接到 WLS 实例正确的主机和端口。

connect('user','pass','t3://localhost:7001')

现在只需告诉它重新部署即可。

redeploy('your_app_name')

确实就是这么简单。

您还可以以相同的方式从 WLST 进行部署。

deploy('your_app_name','path_to_your_app/yourapp.ear','ServerName')

取消部署就像重新部署一样完成。

undeploy('your_app_name')

此快速参考包含所有 WLST 命令。

http://docs.oracle.com/cd/E21764_01 /web.1111/e13813/quick_ref.htm#WLSTC113

Use WLST. On linux you would use wlst.sh. On windows I believe it is wlst.cmd.

SOME_PATH/wlserver_10.3/common/bin/wlst.sh

Then connect to WLS instance using credentials & proper host and port.

connect('user','pass','t3://localhost:7001')

Now just tell it to redeploy.

redeploy('your_app_name')

It really is that simple.

You can also deploy from WLST in the same manner.

deploy('your_app_name','path_to_your_app/yourapp.ear','ServerName')

Undeploy is done just like redeploy.

undeploy('your_app_name')

This quick reference has all the WLST commands.

http://docs.oracle.com/cd/E21764_01/web.1111/e13813/quick_ref.htm#WLSTC113

苦行僧 2024-12-28 08:24:14

就我而言,我需要执行以下操作才能使用 WebLogic 脚本工具 (WLST)。
我在操作系统为 Windows XP Professional 的 PC 上运行开发 10.1.3.3 服务器。
我仅在 WLS 上使用 SSL(“HTTPS”)(可在服务器常规配置页面下找到,特别是“SSL Listen Port Enabled”)。
确保通过转到您的服务器 -> 在服务器上启用隧道协议->常规并单击“启用隧道”。
通过运行

"your_wls_domain_install_dir"\wlserver\server\bin\setWLSEnv.cmd 设置 WLS 环境变量。

然后运行

来启动 WSLT 工具
java -Dweblogic.security.SSL.ignoreHostnameVerification=true -Dweblogic.security.TrustKeyStore=DemoTrust weblogic.WLST

(从上面的命令可以看出,我专门使用 DemoTrust 密钥存储,它是通过 WLS 安装配置的默认密钥存储)
然后,您可以连接到您的服务器...

connect('用户','pwd','https://127.0.0.1:4443')

从那里,我使用了 Billy Bob 提到的重新部署命令。
他提供的链接是所有 WLST 命令的良好快速参考。

In my case, I needed to do the following in order to use WebLogic Scripting Tool (WLST).
I'm running a development 10.1.3.3 server on my PC which has an OS of Windows XP Professional.
I am only using SSL ("HTTPS") as well on WLS (found under your server general configuration page, specifically "SSL Listen Port Enabled").
Make sure to enable tunneling on the server by going to your server -> protocols -> general and clicking on Enable Tunneling.
Set your WLS environment variables by running

"your_wls_domain_install_dir"\wlserver\server\bin\setWLSEnv.cmd.

Launch the WSLT tool by then running

java -Dweblogic.security.SSL.ignoreHostnameVerification=true -Dweblogic.security.TrustKeyStore=DemoTrust weblogic.WLST

(As can be seen in the above command, I'm specifically using the DemoTrust key store which is the default one configured with a WLS install)
Then, you can connect into your server...

connect ('user','pwd','https://127.0.0.1:4443')

From there, I used the redeploy command that Billy Bob mentioned.
The link that he provided is a good quick reference for all the WLST commands.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文