generating a stub class
steve kirby <[email protected]>
| Newsgroups | gmane.comp.java.sun.javaspaces |
|---|---|
| Message-ID | <[email protected]> |
Hello,
I'm trying to run some code from Steven Halter's book -- Java Spaces Example by Example.
For this code he has a class which implements RemoteEventListener, specifically:
public class AdWatcher{
...................
class AdListener implements RemoteEventListener{
private ReplyableAd ad;
public AdListener() throws java.rmi.RemoteException{
//old way UnicastRemoteObject.exportObject(this);
Exporter myExporter = new JrmpExporter();
myExporter.export(this);
}
...........
For jini 2.1, I read that it is better to use an Exporter rather than UnicastRemoteObject.so I changed the code above as shown.
My problem is when I try to run this code it tries to find a AdWatcher$AdListener_Stub.class because AdListener is a remote class. I tried to generate this using rmic as he describes in the book, but didn't succeed. Is rmic the right thing in jini 2.1 or is there someway around stubs? I thought I read also that rmic is not the way to go in jini 2.1. Any ideas are welcom.
TIA,
Steve
---------------------------------
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail Beta.
===========================================================================
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