Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MDB serialized

 
Yi Si
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
spec. say "All calls to a message-driven bean must be serialized".
With my knowledge I can not understand this. Can someone explain this?
[ March 06, 2004: Message edited by: si yi ]
 
Reid M. Pinchback
Ranch Hand
Posts: 775
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It means that the container will only use the MDB to process one message at a time. Only one thread will be using onMessage(), so the MDB doesn't have to worry about implementing thread-safety protections.
 
Yi Si
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
got it. thanks
 
Simon Ingram
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry, I haven't got it. The spec 15.4.5 "Serializing MDB methods" says that the container serializes calls to the MDB instances. I don't understand the concept that a method call can be serialized. You can serialise objects and you can call methods, but what does it mean to serialize a method? Or a method call?


Simon
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
serialize = one after the other (not concurrently)
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The same word Serializatio n is used to refer to not object serialization but to serial processing rather than parallel processing.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic