The code is correct. This is not a loopback situation.
If Behaviour called MyBean through the remote interface (My?), then a
re-entrant call would result, and the container would throw a lot of nice
exceptions at you. But you don't seem to be doing this.
- Avi
--
s/\be(\w+)/e-\1/g;
>
> 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".
>
===========================================================================
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".