|
----- Original Message -----
From: Jean-Claude MEILLAND
Sent: Friday, July 20, 2001 4:51 PM
Subject: What's the "this" pointer (representing the actual
instance) equivalent in EJB ??? Hello,
Here is a
little example :
public class
DummyClass {
public DummyClass(){}
public void dummyMethod(DummyClass2 anotherClass) { // some code
}
}
public class
DummyClass2 {
public DummyClass2(){}
public void dummyMethod2() {
DummyClass d
= new DummyClass();
d.dummyMethod(this);
}
}
HERE IS THE QUESTION
===> How do we manage "this" pointer in entity beans ?
With EJB :
public interface
DummyClass extends EJBObject {
public void dummyMethod2();
}
public class
DummyClass2Bean implements EntityBean {
public DummyClass2(){}
public void dummyMethod2() {
DummyClass d
= new DummyClass();
d.dummyMethod(this); // "this" is a DummyClass2Bean and should be a DummyClass2
(the remote interface)!!!???
} }
Hope you can help !
Thanxs
!
PS : Please don't
tell me the solution is to make a request to the ejbserver in order to find the
remote instance matching the bean by its primary key !
Jean-Claude MEILLAND Mobile (+33/0) 6 87 19 29
89 |
Title: Message
- Re: Fw: What's the "this" pointer (representing... Thomas Dandelot
- Re: Fw: What's the "this" pointer (represe... Eric Demorsy
