[jboss-user] [Beginners Corner] - Re: Web application startup/initialization method

dhong@rsimail.com do-not-reply at jboss.com
Fri Feb 2 11:30:22 EST 2007


At the time when JBoss deploy the application, I want it to invoke an initialization routine (i.e. prior to when the user start launching the web client).

For example, this is what the current output looks like:

...
10:48:54,401 INFO  [TomcatDeployer] deploy, ctxPath=/MYAPP, warUrl=.../tmp/deploy/tmp58687MYAPP-exp.war/
10:48:56,431 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8081
10:48:56,634 INFO  [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
10:48:56,666 INFO  [JkMain] Jk running ID=0 time=0/63  config=null
10:48:56,666 INFO  [Server] JBoss (MX MicroKernel) [4.0.3SP1 (build: CVSTag=JBoss_4_0_3_SP1 date=200510231054)] Started in 26s:492ms
...

And I want it to do this:

...
10:48:54,401 INFO  [TomcatDeployer] deploy, ctxPath=/MYAPP, warUrl=.../tmp/deploy/tmp58687MYAPP-exp.war/
10:48:55,555 INFO EXECUTING MYAPP INITIALIZATION ************
10:48:56,431 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8081
10:48:56,634 INFO  [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
10:48:56,666 INFO  [JkMain] Jk running ID=0 time=0/63  config=null
10:48:56,666 INFO  [Server] JBoss (MX MicroKernel) [4.0.3SP1 (build: CVSTag=JBoss_4_0_3_SP1 date=200510231054)] Started in 26s:492ms
...

Thanks.

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

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



More information about the jboss-user mailing list