Websphere Application Server v7 配置无需重新启动?
有谁知道有什么方法可以在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您需要重新启动服务器才能使这些更改生效。
You need to restart the server for these changes to take effect.
显然,此 wsadmin 脚本会导致在不重新启动的情况下重新加载资源。然而,我的尝试并不是真正决定性的,因为我需要重新启动服务器才能获取新地址。
但是,作为一种解决方法,当我确实需要更改数据源中的某些内容并且不想重新启动整个服务器(您仍然需要重新启动应用程序)时,我创建一个新的数据源,然后从管理控制台企业应用程序>我的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.
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
重新加载不起作用,因为:
“public void reload()
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()
link http://www-01.ibm.com/support/knowledgecenter/SSEQTP_8.0.0/com.ibm.websphere.javadoc.doc/web/mbeanDocs/DataSourceCfgHelper.html