This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JNLP and Web Start and the fly likes Access shared files on remote host after download of Application 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 "Access shared files on remote host after download of Application" Watch "Access shared files on remote host after download of Application" New topic
Author

Access shared files on remote host after download of Application

Steffen Schmitt
Greenhorn

Joined: May 08, 2008
Posts: 14
Hi all,

this may seem a stupid question, but I'm just trying to get a grip on Java Web Start ... As I've read so far, without further notice (in this case the existence of a valid certificate) a Web Start Application cannot access files except on the host the app was downloaded from.

Is it possible to, say, share information stored in files (via serialization or using XMLEncoder) on the remote host between multiple application instances running on different machines?

Any suggestions would be a great help!

Thanks in advance -

Steffen


The man who sets out to carry a cat by its tail learns something that will always be useful and which never will grow dim or doubtful.
-- Mark Twain
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Sure... but probably your Web Start application is downloaded from an HTTP server. So you would have to have a way for your application to update files on that server. Which isn't strictly a Web Start question, you'd have the same issue if it was applets you were talking about, or plain old Java applications which you distributed.
Steffen Schmitt
Greenhorn

Joined: May 08, 2008
Posts: 14
So this is all about plain old sandbox behavoiour? No magic handle back into the server the application came from? I'd have to access any shared file resources on the remote host via ftp connection. But, on the other hand, all I want to do is write a multi-user enabled application which I planned to distribute by means of the Web Start technology. So it might not be necessary to access any shared resources on the remote host at all, as the application will - most likely - run on one single machine in the end ... But (simply a matter of sheer curiosity) would it be possible to do so?

Regards,

Steffen
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Access shared files on remote host after download of Application
 
Similar Threads
FTP Upload
Writing a file from an Applet
form-login-config
Need Help for creating Java portlet
jboss-maven-plugin only handle local start and stop