Originally posted by Babar Qadri:
1- Now can we distribute it via JWS?
Yes. You can use webstart to distribute your .jar file that contains your application.
2- Can it able to access the DB from some other machine (via any JDBC Driver written in pure java)?
Yes. You can specify that your application needs a JDBC driver, which you can have downloaded as part of your application. Check out some tutorials on .jnlp files.
3- Can we say it a distributed application after making it accessable via JWS?
I guess, though it already sounds like it is a distributed application anyway without webstart -- client program, database server ...
4- And what if the Database is on some other machine and that machine is a part of network but doesn't have a live IP. Can we access that DB from the application running on some other machine(not on the same network) via JWS?
If you can't access this other computer anyway, then webstart won't have a chance either. But this is done everyday and is really not a problem. It is just a matter of specifying the database server that your application will need to talk to. We do this in a configuration file that gets included as a program argument in our .jnlp files. The configuration file has an entry like:
As long as the machine is accessible by the client computers, it doesn't matter if it's not registered with the DNS, or anything like that. I'm not sure if I've hit the mark with this response.
Cheers, Jared.