File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JNLP and Web Start and the fly likes Java Web Start Basic Doubts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Java Web Start Basic Doubts" Watch "Java Web Start Basic Doubts" New topic
Author

Java Web Start Basic Doubts

Micheal John
Ranch Hand

Joined: Nov 01, 2006
Posts: 344
HI all,

This question is regd Java Web Start. As far as I understand, java web start is used to download the program/application to the client from server thru' HTTP. Once the application is downloaded it will executed from the local disk.

My Question is, now in the server side the appplication has undergone some changes, how JWS will pick up the latest copy? If the client is not having internet/intranet access, then the JWS will try to get the updated copy or it will execute from the local disk?


Micheal John
SCJP 1.4 (86%), SCWCD 1.4 (86%), SCBCD 1.3 (85%), SCDJWS (Just Started...) - Satisfaction Lies in Our EFFORT, Not in the ATTAINMENT
Jared Cope
Ranch Hand

Joined: Aug 18, 2004
Posts: 243
Hi,

Originally posted by Micheal John:

My Question is, now in the server side the appplication has undergone some changes, how JWS will pick up the latest copy? If the client is not having internet/intranet access, then the JWS will try to get the updated copy or it will execute from the local disk?


If the client has working internet access, it will just happen like magic. The update will transfer and the client will run that code.

If there is no internet access on the client machine, it depends on what has been configured in the JNLP file for the application. If offline is allowed, then the client will run the code that it currently has. If offline is not allowed, then the application will fail to start altogether because it MUST determine if an update has occurred.

We run with offline not allowed. So if Apache goes down or the clients lose internet it is a big deal and needs immediate attention. But we prefer to operate this way because it means that everyone will always be running the same release of the application. No version related issues can ever occur in our environment.

Cheers, Jared.


SCJP 1.4 91%, SCJP 1.5 88%, SCJD B&S
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

If the client has working internet access, it will just happen like magic. The update will transfer and the client will run that code.

I wouldn't necessarily call it magic. What happens is the required JAR files get checked to see if they are newer than what the client has on their local machine. If the server files are newer, they are downloaded to the client.


GenRocket - Experts at Building Test Data
Prashanth Bhanu
Ranch Hand

Joined: Sep 25, 2003
Posts: 110
hi friends,

Can you explain me bit if possible with an example.how does the webstart downloads the JAR file from the remote server.Should my Jar file be in Webserver under WEB-INF folder.
Prashanth Bhanu
Ranch Hand

Joined: Sep 25, 2003
Posts: 110
hi friends,

Can you explain me this bit more if possible with an example.how does the webstart downloads the JAR file from the remote server.Should my Jar file be in Webserver under WEB-INF folder.
I'm keen to know where exactly my Jar file(client programs bundeled) sits in the server??.Hows does web start picks it from there?

Thanks in adavnce

Prasahnth
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java Web Start Basic Doubts
 
Similar Threads
Pragmatic Project Automation book :: 5.7 Auto-updating Installed App
Mismatch of JDK and JRE versions cause screen freeze for applications ?
Start Swing GUI program by Java Web Start with IE in Eclipse debug mode
JWS and JAAS
JWS Maintenance issues and future of java on desktop