Hi,
First the quickies,
Q1
Does the ejbRemove() method of a Stateful Session
EJB have access to its instance variables, I'm getting null when I print them in this method?
Have they been nulled already?
Q2
If I have two Stateful Session EJBs A and B.
If
0)
Servlet invokes method on A
1) A gets B's Remote EJBObject
2) Stores its Handle in an instance variable
3) Calls a method on B which completes
4) Control passes back to Servlet
At what point can the container call ejbRemove() on B?? If it does won't this make the handle stored in B invalid???
Q3
Are there restrictions on EJB's calling back to each other/nested calls.
I know this is V V contrived but when I do the following
Two Stateful Session EJBs A and B, Transaction management set to Container but no DB access.
If
0) Servlet invokes method on A
1) A gets B's Remote EJBObject passing in instance of its Remote(EJBObject)
interface to B via the create method
2) Stores B's remote Handle in an instance variable
3) Calls a method on B which calls back on A via the EJBObject in 1)
4) A calls back on B by reacquiring B's Remote EJBObject via the stored Handle stored in 2)
Phew!
Everything goes like a dream until control bubbles back to the initial method call in 3) then wham I get
InvalidBeanOStateException(current = METHOD_READY, expected = IN_METHOD | TX_IN_METHOD | DESTROYED)
Is it something to do with transactions?
If anyone can be bothered to answer
TIA Graham
