Re: generating a stub class

steve kirby <[email protected]>
Newsgroups gmane.comp.java.sun.javaspaces
Message-ID <[email protected]>
Dan,

  exactly -- thanks, I will take a look at your tutorial.

  --Steve

[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
>




---------------------------------
How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.

===========================================================================
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.