I have a agents.war in the deploy folder. I want to automatically start some code execution when the jboss is started, without any user interaction. Is it possible ?
Well, a few years ago, when I needed something similar, I created an MBean...
You can create dependencies with any other MBean (for datasources, web-apps...) if the things you need to do depend on other services.
If you can tell more about your needs, I'll try to help.