The Artima Developer Community
Sponsored Link

Jini Forum
Registering a RemoteEventListener

1 reply on 1 page. Most recent reply: Sep 28, 2005 5:10 AM by Dan Creswell

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Dušan Kaloč

Posts: 2
Nickname: rais
Registered: Jul, 2005

Registering a RemoteEventListener Posted: Jul 14, 2005 8:30 AM
Reply to this message Reply
Advertisement
Hello,
I try to register a RemoteEventListener (via notify method defined in JavaSpace interface), but all i see are just exceptions - mainly java.lang.ClassNotFoundException: MyRemoteEventListener, i do not know why i get such the exception,
my code:

import net.jini.core.discovery.*;
import net.jini.core.lookup.*;
import net.jini.core.lease.*;
import net.jini.core.entry.*;
import net.jini.core.event.*;
import net.jini.space.*;
import java.rmi.MarshalledObject;
import java.io.*;

public class Test
{
public static void main(String[] args) throws Exception
{
LookupLocator lc = new LookupLocator("jini://kaloc");
ServiceRegistrar sr = lc.getRegistrar();
JavaSpace05 space = (JavaSpace05) sr.lookup(new ServiceTemplate(null, new Class[] {JavaSpace05.class}, null));

space.notify(new MyEntry(), null, new MyRemoteEventListener(), Lease.FOREVER, null);
// space.write(new MyEntry(), null, 10000);
}
}

all classes i use are correctly compiled, but when i try to run this code, all i get are exceptions described above.

Please help


Dan Creswell

Posts: 49
Nickname: dancres
Registered: Apr, 2003

Re: Registering a RemoteEventListener Posted: Sep 28, 2005 5:10 AM
Reply to this message Reply
Please could you post the full exception trace?

Flat View: This topic has 1 reply on 1 page
Topic: Major Problem with Jackcess 1.0 Previous Topic   Next Topic Topic: c-linda compiler

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use