开发过程中的Weblogic热部署(如WSSD/RAD)

发布于 2024-09-08 18:49:16 字数 292 浏览 2 评论 0原文

我之前的所有项目都是在 websphere 上进行的。我现在在一个团队中开发 weblogic 上的应用程序。

在 Websphere 开发 (WSSD/RAD) 中,服务器与 IDE 更加“集成”,因此构建可以自动触发到(开发/本地)服务器的增量部署。

在weblogic环境下可以这样设置吗?我在 google 上搜索了 eclipse 的一些 weblogic 插件,但我没有看到这个被提及为一个功能。

在 weblogic+eclipse 上进行开发的最佳设置是什么,以便在开发过程中构建/部署/重新启动开销最小?

All my previous projects were on websphere. I am right now in a team developing an application on weblogic.

In Websphere development (WSSD/RAD) the server was more "integrated" with the IDE, so a build could automatically trigger an incremental deployment to the (development/local) server.

Is such a setup possible in a weblogic environment? I googled for some weblogic plugins for eclipse, but I dont see this mentioned as a feature.

What is the best setup for development on weblogic+eclipse, so that the build/deploy/restart overhead is minimal during development?

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

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

发布评论

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

评论(1

有一个用于重新部署应用程序的 WebLogic ant 任务。我在 WLS 9.2 下从命令行 build.xml 使用它作为单独的“重新部署”目标,但我认为它可以很容易地添加到 Eclipse 的构建中

<!-- Redeploy the application to WebLogic Server -->
<wldeploy
    action="redeploy" verbose="true" name="<application name>"
    user="<admin user>" password="<admin password>"
    adminurl="t3://<admin server URL>" targets="<server name>" />

:服务器名称> 可能是托管服务器,也可能是您的管理服务器,具体取决于您的配置。

如果您正在使用会话并且要频繁地重新部署,您可能会发现在 weblogic.xml 中添加 persistent-store-type 以允许会话跨越重新部署(如果您还没有这样做),但通常取决于您对应用程序所做的事情。

编辑以添加指向 docs 的链接

There is a WebLogic ant task for redeploying an application. I'm using this from a command-line build.xml as a separate 'redeploy' target, under WLS 9.2, but it can be added to Eclipse's build quite easily I think:

<!-- Redeploy the application to WebLogic Server -->
<wldeploy
    action="redeploy" verbose="true" name="<application name>"
    user="<admin user>" password="<admin password>"
    adminurl="t3://<admin server URL>" targets="<server name>" />

<server name> might be a managed server, or could be your admin server, depending on your configuration.

If you're using sessions and are going to be redeploying frequently, you may find it helpful add a persistent-store-type to your weblogic.xml to allow sessions to span redeploys, if you aren't doing so already - but as so often, depends what you're doing with your application.

Edited to add link to docs

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