This content has been marked as final.
Show 3 replies
-
1. Re: Singleton Message Driven Bean
lupson May 24, 2006 11:11 AM (in response to jdwright00)I am having the same issue. Well, I can have all the MDB instances invoke business logic in a POJO singleton or something like that, but that wouldn't be as neat.
(Basically, a bump!) -
2. Re: Singleton Message Driven Bean
bdecoste May 25, 2006 8:21 PM (in response to jdwright00)You can limit the number of MDB instances in the pool to 1 with:
@MessageDriven(activationConfig =
{
...
@ActivationConfigProperty(propertyName="maxPoolSize", propertyValue="1")
} -
3. Re: Singleton Message Driven Bean
lupson May 26, 2006 3:01 AM (in response to jdwright00)Thanks! Works as a charm. Implemented the POJO singleton solution first, but this method seems to have better performance, and the messages will be processed in the same order I sent them.