I have the following issue with JBoss 4.x.
I have a custom startup class which is supposed to run when we start the server. I have a message in the class which should print just before Started in 29s:750ms (This is the last line when u start the server).
I can handle this with Mbean and jboss-service.xml . But I have some dependency classes in my ear file which talks to this startup class. So, I have to put it in EAR and should configure somewhere to read this class..
So, the issue is - is it possible to put the startup class in EAR and configure somewhere so that the server reads my custom class and prints the message when I just start the server.
(Note: If I configure the startup class name in jboss-service.xml by keeping my startup class in EAR file, it does not work. Because, jboss-service.xml deploys first then the EAR gets extracted as soon as I start the server)
Thanks in advance.