This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Instance variables in MDB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Instance variables in MDB" Watch "Instance variables in MDB" New topic
Author

Instance variables in MDB

Viktor Sadovnikov
Greenhorn

Joined: Feb 07, 2004
Posts: 22
Hi,
The EJB 2.0 specs state
A message-driven bean instance has no state for a specific client. However, the instance variables of the
message-driven bean instance can contain state across the handling of client messages. Examples of
such state include an open database connection and an object reference to an EJB object.

The table with allowed operations in the same specs tells that "Enterprise bean access" is possible from onMessage() only. Do you know how and when to get the reference to a session bean object and keep during the MDB life-time?
Thanks, Viktor


SCJP 1.4, SCBCD 1.3
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Instance variables in MDB
 
Similar Threads
ejb spec's point clarification..
Question on exercise pg 108 HFE
MDB state
Removing MDB Instance
understanding of stateless session beans