Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What kind of bean?

 
J.H.B. Oosterlaar
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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!
Jeroen
 
Vikram Anand
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic