0

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?

Dyapa Srikanth
  • 1,231
  • 2
  • 22
  • 60

1 Answers1

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