[jboss-user] [Installation, Configuration & Deployment] - Configuring the startup class in JBoss 4.x - URGENT

krishna_mv do-not-reply at jboss.com
Fri Jan 12 10:58:10 EST 2007


Hi friends, 

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.

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

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



More information about the jboss-user mailing list