• Post Reply Bookmark Topic Watch Topic
  • New Topic

MDBPooling Doubt  RSS feed

 
Suresh Sankar
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
i am developing MDB.it is using one Utility class.i know container
will create MDB pool to process the Message.but here my Utility
class must be ThreadSafe or not
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do not make your Utility class thread-safe, to do so will be in breach of the EJB spec. The container will ensure the thread safety of both the Utility class and the MDB.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!