WebSphere 是否缓存 Spring 应用程序的配置文件?
我正在使用适用于 AIX 的 WebSphere 7.0.0.13。令人惊讶的是,我发现 WebSphere 偶尔会报告某些 XML 标记(例如
标记)缺少结束标记,尽管我很确定它具有结束标记。
这种现象更有可能发生在手动杀死WAS进程的情况下。我怀疑 WAS 是否在某个地方缓存了我们的 Spring 配置文件?
I'm using WebSphere 7.0.0.13 for AIX. Surprisingly I find WebSphere occasionally reports certain XML tags (such as the one for <tx:transactionManager>
) to be missing an ending tag, though I'm pretty sure it has the ending tag.
The phenomenon is more likely to happen to have the process of WAS manually killed. I doubt if WAS is caching our Spring config files somewhere?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
值得怀疑的是,WebSphere 是否对 Spring XML 文件做了任何特殊的事情; AFAIK,它不“了解”Spring。
Spring 是否做了任何特殊的事情来缓存其 XML 文件也值得怀疑; Spring 缓存文件不会有任何性能优势,这些文件通常在 web 应用程序启动时读取/使用一次,而不是再次读取/使用。
如果您确实收到过时的 XML 文件,我认为问题与您的更新部署到 Web 应用程序的方式有关。也许文件没有被复制,或者没有被解压,或者 web 应用程序没有正确重新启动。
It is doubtful that WebSphere does anything special for Spring XML files; it doesn't "know about" Spring, AFAIK.
It is also doubtful that Spring does anything special to cache its XML files; there would be no performance advantage in Spring caching files that are typically read / used once on webapp startup and not again.
If you are really getting stale XML files, I expect that the problem is something to do with the way your updates are getting deployed to the webapp. Maybe the files are not being copied across, or not being unpacked, or the webapp is not restarting properly.