I need to write some code which has (extremely roughly) the following
structure:
In my stateful session bean I have:
public class MyBean ... {
Behaviour myBehaviour;
Child myChild;
public setField(Object aValue) {
.
.
myBehaviour.execute(this); // or some reference to myself
}
public void someMethod() {
// do something
}
public Child getChild() { return myChild; }
}
The Behaviour class looks something like:
public class Behaviour {
public void execute(MyBean aRef) {
aRef.someMethod();
aRef.getChild().doSomething();
}
}
Now, section 6.5.6 of the 1.1 spec would seem to imply that I can't
actually do this.
Am I correct in thinking this? If so - can anybody suggest a way round
it.
Any suggestions appreciated!
Amanda
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".