tomcat - How to start a Java Thread once Grails App is up? -


i have requirement start java thread after grails app (tomcat) up, correct way ?

i'm not 100% sure question have asked appears need start threads once grails app up. java threads term doesn't make sense let's call these threads.

you in bootstrap file's init method init place gets executed after application loads.

class bootstrap{     def init = { servletcontext ->      }  def destroy = {      } } 

you kill heavy / costly resources in destroy method .

hope helps!


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -