• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

accessing config.jar on a local system from an applet

 
anirudh takkallapally
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are trying to reduce the number of network calls made before the applet is actually started. Right now the way the applet is written, whenever the applet needs a configuration file it goes to the server to get it. There are quite a few number of configuration files in a separate folder called config in the server.

We came up with the idea of making a jar of the config directory, getting it to the local system when the applet is loading and accessing the config.jar file when ever we need a config file. All the configuration files are in XML.

Is there a way to get the config.jar from the server into the local system and access it through the applet? This config.jar will contain subdirectories with XML files in them.

If we cannot do it this way, is there any other better way of reducing the network calls.

Thank you,
anirudh
 
Joe Ess
Bartender
Posts: 9340
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you wrapped up all your config files in a JAR, that should only be 1 network access, right?
You will have to digitally sign an applet in order to access the local file system. If you are going to go through those hoops, you may as well look into Java Web Start, which provides a network oriented distribution method for applications.
It is really difficult to make up for deficient hardware with software optimization. Make sure your network and server are up to the task of supporting your clients.
 
anirudh takkallapally
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Joe, will look into Java Webstart and see if it has some solution for me.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic