Help in notify

Tatiana Pereira Filgueiras <[email protected]> Wed, 27 Sep 2006 12:44:50 -0600
Newsgroups gmane.comp.java.sun.javaspaces
Message-ID <LISTSERV%[email protected]>
Hi!
 I maked this code:
public class Cliente implements RemoteEventListener,Serializable{

 private JavaSpace space;

 public Cliente(){}

 public Cliente(JavaSpace space){
  this.space = space;
  }

 public static void main(String[] args){

 try {
  // ************* Fazendo Lookup para achar o espaço ***********************

  Utilidades conexao = new Utilidades();
  JavaSpace space = conexao.conecta();
  Cliente setar = new Cliente(space);
  // ************** Registrando cliente para receber notificação de
resultado **************

  Cliente usuario = new Cliente();
  Resultado template = new Resultado();
  space.notify(template, null,usuario, Lease.FOREVER, null);

But my notify is wrong because I use variable "usuario" ( = Cliente class)
. One friend tell me to use a remote object from Cliente class...but how I
do it? Can anybody send me an example? I HAVE to make other class and use
this on my Cliente.java?

Hugs
Tatiana

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