Re: Need help about code mobility
Andrea Angeloni <[email protected]>
| Newsgroups | gmane.comp.java.sun.javaspaces |
|---|---|
| Message-ID | <002f01c66f67$0af30090$a8f1fea9@omino> |
>I'm not familiar with the example but I would imagine the producer >process has a direct dependency on PrimeJob in that it uses it's >constructor and fills in the fields. yes, this is the case under the producer: PrimeJob job = new PrimeJob(nextNumberToCalculate); >With that being the case, setting java.rmi.server.codebase doesn't help >because that will be applied to outgoing classes, not incoming ones. This is a very big surprise for me, I thought that codebase setting is just like a "classpath setting". I've learnead about RMIClassloader annotation, but I 've never considered this aspect. >Thus PrimeJob needs to be in the Producer's classpath. You can likely >get the client to download PrimeJob but you'll probably need to adjust >the code to not explicitly mention it in it's own code. >There are methods for modifying the Producer to not need PrimeJob in >it's classpath and download it across the net but if all you want to do >is see remote code loading at work, modifying the client side will be a >lot easier. The purpose of my study: I'm trying to see if is possibile to use RMI/Jini/Javaspaces code downloading feature to develop applications in with some classes are deployed in a repository, in particular with inheritance relations between remote classes. I've considered JavaSpaces, because I've found it a little higher level than pure RMI. So, I've started to study the possibility to having JavaSpaces entry classes in a remote repository, used by applications that use the space. Can you indicate me a way how I can modify the producer code to have the right behaviour? Thanks for the explanation, Andrea =========================================================================== 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