当 WSAdmin 脚本更改时如何刷新 Websphere 配置?
我有一个创建公交车目的地的 python 脚本。我从 WSAdmin 运行该脚本,它工作正常,但更改不会显示在 Websphere (WAS) 控制台中。
如果我从控制台注销然后再次登录,我可以看到更改。
脚本以 AdminConfig.save()
结尾
如何使 WAS 控制台刷新并显示最新的配置更改?无需注销并登录。
我在 Windows 上运行 WAS 版本 7.0.0.15。
感谢您的帮助!
编辑:
当我运行另一个创建 JMS 队列的脚本时,新队列会立即显示在 WAS 控制台中。所以这可能是 WAS 控制台中的一个错误。
I have a python script which creates bus destinations. I run the script from WSAdmin and it works fine, but the changes don't show up in the Websphere (WAS) console.
If I logout from the console and then login again, I can see the changes.
The script ends with AdminConfig.save()
How can I make the WAS console refresh and show the latest configuration changes? Without having to logout and login.
I run WAS version 7.0.0.15 on Windows.
Thanks for any help!
EDIT:
When I run another script which creates JMS queues instead, the new queues show up in the WAS console immediately. So maybe it's a bug in the WAS Console.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据我的经验,当您重新访问或刷新页面时,WAS 集成解决方案控制台通常会显示其他会话所做的更新;然而,在某些情况下,这不能按预期工作,这些通常代表控制台中的错误。
当我登录到控制台时,我运行了一个快速测试,从
wsadmin
创建 SIB 目标。当我重新访问巴士页面时,我发现更改并未被识别;然而,当我导航到大多数其他页面时,我看到了“您的工作区已从主配置自动刷新。您可以在用户首选项中禁用自动刷新。”通常指示何时从另一个会话进行更改的消息。然后,在导航回巴士信息后,我的新目的地就可见,无需注销并重新登录。巴士页面似乎没有检测到这些更改,这听起来像是一个错误。您可以考虑使用 IBM 记录 PMR。
否则,首先确保启用工作区刷新(
系统管理
>控制台首选项
>打开工作区自动刷新
) - 此设置为很可能已经默认启用 - 然后您可以使用我找到的解决方法,通过导航离开总线页面而不是注销。In my experience, the WAS Integrated Solutions Console typically will show updates made from other sessions when you re-visit or refresh a page; however, there have been a few cases where this doesn't work as expected, and these usually represent bugs in the console.
I ran a quick test to create a SIB destination from
wsadmin
while I was logged into the console. I found that the change wasn't recongized when I simply re-visited the buses pages; however, when I navigated to most other pages, I was greeted with the "Your workspace has been auto-refreshed from the master configuration. You can disable auto-refresh in your user preferences." message that typically indicates when a change from another session was made. Then, after navigating back to the buses information, my new destination was visible without having to log out and log back in.It seems that the buses pages are not detecting these changes, and this sounds like a bug. You might consider logging a PMR with IBM.
Otherwise, first, ensure that workpsace refresh is enabled (
System administration
>Console Preferences
>Turn on workspace automatic refresh
) - this setting is most likely already enabled by default - and then you may be able to use the workaround that I found by navigating away from the buses pages rather than logging out.