[jboss-user] [Beginners Corner] - Executing code upon deployment

c_eric_ray do-not-reply at jboss.com
Thu May 10 10:36:25 EDT 2007


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?

Thanks.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044694#4044694

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044694



More information about the jboss-user mailing list