For JNDI dependencies, I see no other way other than the javax.naming.event solution we talked about. As you said, there's no way to be notified when something is unbound from JNDI.