This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

What kind of bean?  RSS feed

 
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
Boost this thread!