Websphere Application Server v7 配置无需重新启动?

发布于 2024-10-09 10:06:07 字数 267 浏览 0 评论 0原文

有谁知道有什么方法可以在 WAS 7 中更改数据源配置而无需完全重新启动应用程序服务器吗?我需要更改数据库 URL,但不想关闭所有应用程序服务器来执行此操作。

据我所知,这些资源在服务器启动时绑定,回收服务器是识别新配置的唯一方法。例如,如果您的驱动程序从 oci 切换到 Thin,则池中可能仍有一些连接,这可能会很麻烦。

我也很好奇是否可以在不重新启动的情况下更改 JMS 资源信息,例如队列或主题 JNDI 名称。

请告诉我。看来如果不重新启动,这两者都不可能改变。

Does anyone know of any way to make a datasource configuration change in WAS 7 without a complete restart of the app servers? I need to change the database URL and would rather not bring down all my app servers to do so.

From what I can gather, these resources are bound at server startup and recycling the server is the only way to recognize the new configuration. For example, if your driver switched from oci to thin, you may have some connections still in the pool, which could be troublesome.

I am also curious if its possible to change JMS resource information, such as a Queue or Topic JNDI name without a restart.

Please let me know. It doesn't really seem either of these are possible to change without a restart.

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

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

发布评论

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

评论(3

远昼 2024-10-16 10:06:07

您需要重新启动服务器才能使这些更改生效。

You need to restart the server for these changes to take effect.

街角迷惘 2024-10-16 10:06:07

显然,此 wsadmin 脚本会导致在不重新启动的情况下重新加载资源。然而,我的尝试并不是真正决定性的,因为我需要重新启动服务器才能获取新地址。

wsadmin>set dsh [$AdminControl queryNames process=server1,type=DataSourceCfgHelper,*]
wsadmin>$AdminControl invoke $dsh reload

但是,作为一种解决方法,当我确实需要更改数据源中的某些内容并且不想重新启动整个服务器(您仍然需要重新启动应用程序)时,我创建一个新的数据源,然后从管理控制台企业应用程序>我的APP >资源参考

Apparently, this wsadmin script causes the resources to be reloaded without a restart. However, my attempts were not really conclusive as I needed to restart the server for the new address to be picked up.

wsadmin>set dsh [$AdminControl queryNames process=server1,type=DataSourceCfgHelper,*]
wsadmin>$AdminControl invoke $dsh reload

But, as a workaround, when I really need to change something in a datasource and don't want to restart the whole server (you would still have to restart the application), I create a new datasource and then change the resource bindings from the admin console Enterprise Applications > MyAPP > Resource references

书间行客 2024-10-16 10:06:07

重新加载不起作用,因为:

“public void reload()

Reloads resources.xml. This function may be called to bind a new data source after server start. **It does not impact existing data sources**."

link http://www-01.ibm.com/support/knowledgecenter/SSEQTP_8.0.0/com.ibm.websphere.javadoc.doc/web/mbeanDocs/DataSourceCfgHelper.html

reaload dont work because:

"public void reload()

Reloads resources.xml. This function may be called to bind a new data source after server start. **It does not impact existing data sources**."

link http://www-01.ibm.com/support/knowledgecenter/SSEQTP_8.0.0/com.ibm.websphere.javadoc.doc/web/mbeanDocs/DataSourceCfgHelper.html

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