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 What kind of bean? 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 "What kind of bean?" Watch "What kind of bean?" New topic

What kind of bean?

J.H.B. Oosterlaar
Ranch Hand

Joined: Sep 12, 2002
Posts: 41
I don't know how to classify (session, entity, etc.) the following beans:
*. A bean that acts as a manager. It has a method "void addData(...". It keeps its own buffer of data. When the buffer reaches its limit, the manager writes its buffer to the database. This bean has to be called by more clients. Every client has the same reference. The writing of the buffer should be asynchron.
*. The bufferelements. This is a bean with getters and setters. These beans are stored in the buffer from the manager.
Is this a good setup for an EJB environment within the EJB container, or should we handle it totally different.
Thanks and cheers!
Vikram Anand

Joined: May 17, 2002
Posts: 10
take the buffer elements as MDBs where upon the reaching the limit the message is delivered and the data is populated using the MDB(session bean) to the entity beans.
I agree. Here's the link:
subject: What kind of bean?
It's not a secret anymore!