Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Thelma Murray   on May 02 In Java Category.

  
Question Answered By: Candace Foster   on May 02

I suppose you need you message  driven bean to listen for certain actions i.e stop/pause events. Certain restrictions are involved when you want to have threads in the container.

For cases like what you're saying, it's better for your message driven bean to only listen for events/actions and act like a dispatcher and then handover the action (per event basis) to a business delegate for stop/start/pause of message processing,

decoupling the MDB of the actual message processing  should be a good solution

I guess you can read through concurrent patterns for best practices in such cases.

Share: 

 
 
Didn't find what you were looking for? Find more on Message Processing Or get search suggestion and latest updates.


Tagged: