I would like my application to aware that its been deploy, so that it can initialse itself (add initial data, user, passwd in db etc.). Is there a message listener bean that I could write that listens to container messages (may be thu JMS ??) Does container publish mesages when an application is deploy? Its a newbie question but anyone please help me out or point to the documentation please.