From: <ste...@ya...> - 2004-06-10 10:19:15
|
Hi all, As a part of my project I have created a java class which, among other things, accesses files (including text files) locally in a machine A.I want to deploy this component to a machine B with smartfrog using the class I wrote and the files in machine A.The description file resides in machine A as well. Obviously I can't just use the script "sfStart machineB description_file" because it will only load the class from A to B and not the files the class needs.I don't know if remote class loading in smartfrog gives that opportunity.If you specify a jar file in the codebase containing the java class and the files it needs to access, will they all be loaded dynamically in B or will only the class be loaded?I have to have the answer now before proceeding with exploring the class loading any further.Can you please explain if it can be done with smartfrog somehow? Otherwise I will have to use another component which will send all the needed files to B possibly using ftp. I tried to play aroung with smartfrog's class loading scripts but, no matter what I tried, the codebase option wouldn't work.To be more specific, I ran the classloader/sfDaemon script defining the codebase and then I ran the simple bin/sfStart script for an example.The error message I got was that the class could not be found.Obviously the codebase option didn't work for some reason.I noticed that in shell scripts codebase is written as "-Dorg.smartfrog.codebase=..." while in bat files you are not using quotes.Why is this? (I am using the latest beta release). Anyway I tried both ways (unix and windows) and I had the same error message.What is going wrong? Thank you all in advance, Stefanos Koukoulas --------------------------------- Do You Yahoo!? Αποκτήστε την δωρεάν σας@yahoo.gr διεύθυνση στο Yahoo! Mail. |