This content has been marked as final.
Show 1 reply
-
1. problem with JBoss 6 timer in MDB
wdfink Feb 19, 2011 1:51 AM (in response to saphir)A MDB is a stateless instance, so I think it depends to the implementation how such stateful thing like yours will work.
A timer in this case will call a instance of your MDB without respect the concrete instance, one will taken from the pool and triggered.
If you use a local collection, it is not deterministic how your threshold is reached.
A static collection might be better.
But I think it will be very dangerous, so what about if the server is server is shutdowned? Your pending messages are lost!
And this will only one of the suspect examples.