Andrew Meng wrote:
Greg,

Thanks for the help and I guess it will definitely work.

Without any code to build stringreader on server side or construct a URL object on the remote site, is there any way to just put the file into code base directory on the
server(just like those task object class file) so a worker
can download it automatically to local  machine before
opening it whenever necessary?

Yes, I guess you are not familiar with using resources? If you put the file in the codebase directory on the server, and you include a codebase element that provides access to the file, you can use on of the versions of the context ClassLoader's ClassLoader.getResource() et.al. to find that file by name, and get back the URL to access it from. That still provides access "as a URL", and later you could move the file to another "server" or "place" and use a different URL to access it.

Gregg Wonderly

Reply via email to