What's the best way to execute some code upon deployment. I need to do a bit of validation on some data in the database each time my application is deployed or started. I know of one way to do this: use the service architecure of jboss (@Service)
I don't really like this solution as it is JBoss specific. Is there another way? Could the EJB Timer service be used somehow? If so, how would I automatically get the timer fired? Can that be setup in a descriptor file?