aspose file tools*
The moose likes JNLP and Web Start and the fly likes using jnlp to download jnlp? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "using jnlp to download jnlp?" Watch "using jnlp to download jnlp?" New topic
Author

using jnlp to download jnlp?

bernard amadeus
Greenhorn

Joined: May 15, 2009
Posts: 21
Here is the idea:
- have a jnlp file on "client" and one on "server": offline allowed
- you can have a jnlp file on a client machine that just references the jnlp file on the server (no detailed resources description)
- the jnlp file on the server has all the resource description needed

it does work :
advantage: you maintain the resources on the server only (the jnlp file on client machine is minimum)
drawback: if the server is offline it does not work anymore

so : is it possible to have a complete jnlp file on client machine (that describes all the needed resources) and that this file is updated through jnlp itself?
(that is you download and maintain the jnlp client through Java web start)

does it make sense?
how to do that?
thanks
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10266
    
    8

I think you are confusing the actual application with the JNLP file.

Scenario 1: Fresh start
JNLP file and related resources reside on a server. Client access the JNLP via a browser. JNLP is downloaded on to the client machine. JNLP is launched. It downloads the required resources from the server, dumps it into the local client cache and executes them.
Scenario 2:
Client JNLP is launched. Depending on the configuration it will check for updates from the server. If updates available, it will download them from the server, dump into the local client cache and executes them.

As you can see the actual JNLP file is only a "launch configuration".

Did this answer your question or did I misunderstand what you are saying. If yes, can you please rephrase your question?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

bernard amadeus wrote:does it make sense?


Before we answer that, it would be necessary to understand what problem it was trying to solve. In other words, why bother? If it would solve a problem which the regular JNLP design doesn't solve, then we could discuss whether this was a good way to solve that problem.
bernard amadeus
Greenhorn

Joined: May 15, 2009
Posts: 21
Apparently I was not clear enough ... so let's start again.
A client machine wants its application to be up to date thru jnlp...
now it uses it "offline allowed" that is: it is possible not to have a connection to the server (for different reasons) so it happens that http connection is off.
you can use a jnlp descriptor that is fully deployed on the client machine (a jnlp file that can be "clicked" by the user)
ok 1?

now: this jnlp file is almost a copy on the one on the server: it describes all the resources needed.
if there is no connection javaws finds the resources in the cache.

ok 2?

remark: on the server you may need to change the needed resources as the application evolves... sounds logic?
naïve conclusion: it could be a good thing to have the jnlp file on the client dynamically updated ...when the connection is on (or so I think).

. In other words, why bother? If it would solve a problem which the regular JNLP design doesn't solve,

sorry I have a knack to ask irksome questions ...
bernard amadeus
Greenhorn

Joined: May 15, 2009
Posts: 21
Paul Clapham wrote:
bernard amadeus wrote:does it make sense?


Before we answer that, it would be necessary to understand what problem it was trying to solve. In other words, why bother? If it would solve a problem which the regular JNLP design doesn't solve, then we could discuss whether this was a good way to solve that problem.


sorry : jnlp does it perfectly and rather simply I just was not aware of it! thanks for the challenge!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: using jnlp to download jnlp?