websphere下如何找到运行时应用程序安装的目录

发布于 2024-12-22 07:05:54 字数 172 浏览 3 评论 0原文

我们使用的是 WebSphere 7。默认情况下,WebSphere 将安装的 Ear 应用程序解压到 给定节点、应用程序服务器单元的目录“installedApps”。我试图找出此安装目录的目录路径,以防未使用默认安装目录。 websphere 是否提供任何我可以在运行时从我的应用程序调用的 api 来查找应用程序安装的目录?

we are using WebSphere 7. WebSphere by default unpacked the installed ear application in to the
directory "installedApps" for the given node, cell of application server. I am trying to find out the directory path for this installed directory in case that the default installed directory were not used.
Does websphere provide any api that i can call from my applicaiton at runtime to find out the application installed directory?

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

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

发布评论

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

评论(1

嘦怹 2024-12-29 07:05:54

I believe you are looking for ServletContext.getRealPath(String path).

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