This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) 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.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!