Need help about code mobility
Andrea Angeloni <[email protected]>
| Newsgroups | gmane.comp.java.sun.javaspaces |
|---|---|
| Message-ID | <002401c66f60$fb70b910$a8f1fea9@omino> |
Hi, my first message in this mailing list. I'm a JavaSpaces newbie. I've runned, as my first JavaSpaces application, the prime number example founded at http://www.jroller.com/page/matsh?entry=intreagued_by_javaspaces_try_blitz (ant version). After installing Jini Starter Kit, and Blitz server, all ok, it runs correctly. During the study of JavaSpaces technology, I've found that is possible to use classes located remotely, in a web server for example, setting the codebase property of the java virtual machine that launches the processes, using the property -Djava.rmi.server.codebase=http://hostname/ Now, I've tried a test of this feature using prime example: I've removed the entry class (primejob.class) from the application folder, I've deployed it in my local web server (apache) under http://omino:8085/testjavaspace/ , I've added the property in the ant build.xml file, for the producer and consumer processes, using <jvmarg value="-Djava.rmi.server.codebase=http://omino:8085/testjavaspace/"/> within the ant tasks. Running the producer process, I've the message of PrimeJob class not found. Am I missing any steps, or have I misunderstood this feature? Maybe I've to launch some RMI/Jini service, I'm not sure... Can you help me? Thanks. =========================================================================== To unsubscribe, send email to [email protected] and include in the body of the message "signoff JAVASPACES-USERS". For general help, send email to [email protected] and include in the body of the message "help". To view past JAVASPACES-USERS postings, please see: http://archives.java.sun.com/archives/javaspaces-users.html