jnlp:从服务器读取属性文件
我正在通过 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的。甚至是沙盒 JWS 应用程序。可以“打电话回家”。
形成与应用程序代码库相关的 URL(通常是最简单的)。要获取代码库,请参阅
BasicService.getCodeBase()
。这是一个 演示。BasicService
(它包括源文件和构建文件)。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 theBasicService
(it includes source and build files).