jnlp:从服务器读取属性文件

发布于 2024-12-25 15:52:33 字数 88 浏览 4 评论 0原文

我正在通过 jnlp 启动应用程序,我需要从服务器(Tomcat)读取数据库配置。是否可以连接到主机地址,或者我可以在 jnlp 启动应用程序之前读取属性文件吗?

I am launching application through jnlp, where i need to read the database configuration from server (Tomcat). Is it possible to connect to the host address or can i read properties file before jnlp launching the application?

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

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

发布评论

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

评论(1

浅沫记忆 2025-01-01 15:52:33

是否可以连接到主机地址..?

是的。甚至是沙盒 JWS 应用程序。可以“打电话回家”。

形成与应用程序代码库相关的 URL(通常是最简单的)。要获取代码库,请参阅 BasicService.getCodeBase()。这是一个 演示。 BasicService(它包括源文件和构建文件)。

Is it possible to connect to the host address..?

Yes. Even a sand-boxed JWS app. can 'phone home'.

Form an URL relative to the codebase of the application (is usually easiest). To gain the codebase, see BasicService.getCodeBase(). Here is a demo. of the BasicService (it includes source and build files).

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