Possible Duplicate:
Delaying code or Tomcat hook for Listener
在我的网络服务中,我称之为另一个网络服务。
http://localhost:8080/bayer-ws-1.0/bayer/soap
但是,在实际开始在港口举行听众之前,Tocat开始了所有战争。
因此,我们无法停靠8080万吨港口,直到《欧洲常规武装力量》所有东西都完全运行。
How can we solve this problem , to make tomcat to start Listeners first I think tomcat has some listeners or something you can hook into, but I m not really sure.
我现在请我发言。
如果问题混淆不清,这就是我想要获得的东西。
Tomcat starts up all the wars prior to actually starting up a listener on the port. Thus, you cannot call off to a port 8080 thing until AFTER everything is completely up and running. I think tomcat has some listeners or something you can hook into, but I m not really sure. A simple timer or something to delay the above code for a couple seconds, if possible, should also work.