Re: problem with distribuited events
John McClain <[email protected]> Sat, 12 Apr 2008 18:32:56 -0400
| Newsgroups | gmane.comp.java.sun.javaspaces |
|---|---|
| Message-ID | <[email protected]> |
Bulzan Stefan wrote:
> I'm new in using Javaspaces. So, please help :)
>
> I have the next class:
>
> public class Listener implements RemoteEventListener {
> private JavaSpace space;
>
> public Listener(JavaSpace space) throws RemoteException {
> this.space = space;
> UnicastRemoteObject.exportObject(this);
> }
>
> public void notify(RemoteEvent ev) { ... }
> }
>
> an java.rmi.StubNotFoundException: Stub class not found: main.Listener_Stub
> is thrown.
>
> What should I do to publish this class as a distributed event listener?
> Should I make a stub with rmic ?
> Please tell me the process for setting up the Remote event listener.
What JDK are you using? In 1.4 and earlier you need to run RMIC to
create stubs, in 1.5 and latter RMI will use dynamic proxies and
generate the necessary stub classes on the fly.
===========================================================================
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