Re: generating a stub class
Dan Creswell <[email protected]>
| Newsgroups | gmane.comp.java.sun.javaspaces |
|---|---|
| Message-ID | <[email protected]> |
Whoops, should have copied to javaspaces-users not jini-users..... [email protected] wrote: > Hi Steve, > > I'm guessing that the scenario you are playing with is related to use of notify()? > > If that's the case, you might find my notify tutorial which includes details re: exporters etc useful: > > http://www.dancres.org/cottage/notify_tutorial.html > > Best, > > Dan. > > [email protected] wrote: > > Hello, > > I'm trying to run some code from Steven Halter's book -- Java Spaces Ex= > > ample by Example. > > For this code he has a class which implements RemoteEventListener, spec= > > ifically: > > public class AdWatcher{ > > ................... > > class AdListener implements RemoteEventListener{ > > private ReplyableAd ad; > > public AdListener() throws java.rmi.RemoteException{ > > //old way UnicastRemoteObject.exportObject(this); Exporter myExporter =3D new JrmpExporter(); > > Exporter myExporter =3D new JrmpExporter(); myExporter.export(this); > > myExporter.export(this); } > > } > > ........... > > For jini 2.1, I read that it is better to use an Exporter rather than U= > > nicastRemoteObject.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 g= > > enerate 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 idea= > > s are welcom. > > TIA, > > Steve > > > > --------------------------------- > > Do you Yahoo!? > > Everyone is raving about the all-new Yahoo! Mail Beta. > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > To unsubscribe, send email to [email protected] and include in the bo= > > dy > > 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 > > > > -------------------------------------------------------------------------- > Getting Started: http://www.jini.org/wiki/Category:Getting_Started > Community Web Site: http://jini.org > jini-users Archive: http://archives.java.sun.com/archives/jini-users.html > Unsubscribing: email "signoff JINI-USERS" to [email protected] > =========================================================================== 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