Invoking the getEJBObject and getEJBLocalObject methods is disallowed in the session bean methods in which there is no session object identity established for the instance.
chapters 3 (not necessarily EJB 2.1 client view part), 4, 5, 12, 13, 14, 16, 17, 18, 19, 20, 21 and 22 of the ejb core specification, chapter 9 from the ejb simplified specification and chapters 2, 3, 4, 5, 6, 8, 9 and 10 of the ejb persistence specification.
Remote and local client view of session beans wriiten to EJB 2.1 client view API