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?
Asked
Active
Viewed 1,007 times
1 Answers
1
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).

Andrew Thompson
- 168,117
- 40
- 217
- 433