File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Head First EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Head First EJB" Watch "Head First EJB" New topic

Head First EJB

Joseph Sweet
Ranch Hand

Joined: Jan 29, 2005
Posts: 327
Hi All.

From "Head First EJB" Chapter 4, page 228:

Bean things you can do from stateless bean methods:

ejbCreate(), ejbRemove():

Use your SessionContext to:


get a reference to your EJB Object

Really??? How can I refer to the stateless session bean instance's EJB Object from ejbCreate(), ejbRemove(), if the bean is tied to no EJB Object at that time?

We must know, we will know. -- David Hilbert
I agree. Here's the link:
subject: Head First EJB
It's not a secret anymore!