[jboss-dev-forums] [Deployers on JBoss (Deployers/JBoss)] - How to configure Startup class in JBOSS4.x

krishna_mv do-not-reply at jboss.com
Tue Jan 9 15:12:12 EST 2007


Hi friends,

I have the following issue in 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 had to put in EAR.

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 placing my class in EAR file, it does not work. Because, jboss-service.xml deploys first then the EAR file as soon as I start the server)

Thanks in advance.

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

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



More information about the jboss-dev-forums mailing list