I have an application that processes messages in a JMS queue through several MDBs.
Those MDBs creates entity and needs the entity bean and associated facades to work. I made some dependency on those and on startup everything works fine. Messages are pooled when those are deployed only (before it was trying to process and crashes because of a NameNotFoundException on the facacde)
I would like the same behavior on shutdown. Would it be possible to stops processing when beans are undeployed.
Actually I don't understand why the same behavior does not occur on shutdown.