• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

What kind of bean?

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic