is it possible to get notified inside the bean (mdb in this case) that its deployment procedure has just finished?
I would say that when setMessageDrivenContext
is called, that's your bean deployed - you know that the container has a context and has assigned it to your MDB.
The problem with your design is that MDBs are passive components, they're not supposed to do anything until a message gets delivered to them.