I'm new to message driven beans but I'd like to use one.
The purpose of the bean is to do sg in the database.
However, the db will not be always available. In such case, I'd like to have it to wait until it becomes available again.
I know that I could check if it is available and thread.sleep if not but I wonder if there is a better way to do it.