I've annotated my EJBs also with some own custom annotations. These annotations reference to values in my database. Instead of writing a database script that updates the database to the changed java code (and annotations), I would prefer a more automatic update: When an EJB class gets analysed on deployment I would intercept this process. The interceptor should analyse my own annotations and update the database automatically.
Unfortunately, I've no idea to solve this problem with jboss-5. I expect to solve this with aop, but how?
It maybe a cool feature for EJB3.1. The "@StartUp" annotation - currently only planned for singleton beans - should also be allowed for all kinds of EJBs but only for methods.