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
Post a Comment