No, it doesn't make sense. You need to add that in your ServletContextListener
On Tue, Feb 25, 2014 at 1:33 PM, Tulio Domingos <[email protected]>wrote: > Thanks for the reply Endre, > > Yes, I've tried it on all possible orders...but maybe I had it in the > wrong place, I'm calling system.shutdown() and system.awaitTermination()from > within the > postStop function of class RootServiceActor (that extends HttpServiceActor) > Does that make sense? > > override def postStop = { > system.shutdown() > system.awaitTermination() > } > > > Cheers > Tulio > > > On Tuesday, February 25, 2014 1:07:01 PM UTC+1, Akka Team wrote: > >> Hi Tulio, >> >> >> system.shutdown, system.awaitTermination, system.stop(serviceActor), >> serviceActor >>> ! Kill, etc none of that seems to work..any clues?? >>> >> >> Have you tried >> >> system.shutdown() >> system.awaitTermination() >> >> in that order? The first step starts the shutdown asynchronously while >> the second waits until that finishes. Using awaitTermination alone makes no >> sense, and using system.shutdown() alone does not do a synchronous shutdown. >> >> -Endre >> >>> >>> Using: Tomcat 7, Akka 2.2.3 and 2.3.0-RC3, Spray 1.2.0 and 1.3-RC1 >>> >>> Any help would be much appreciated >>> Cheers >>> Tulio >>> >>> >>> -- >>> >>>>>>>>>> Read the docs: http://akka.io/docs/ >>> >>>>>>>>>> Check the FAQ: http://akka.io/faq/ >>> >>>>>>>>>> Search the archives: https://groups.google.com/ >>> group/akka-user >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "Akka User List" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to [email protected]. >>> >>> Visit this group at http://groups.google.com/group/akka-user. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >> >> >> >> -- >> Akka Team >> Typesafe - The software stack for applications that scale >> Blog: letitcrash.com >> Twitter: @akkateam >> > -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ > >>>>>>>>>> Check the FAQ: http://akka.io/faq/ > >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user > --- > You received this message because you are subscribed to the Google Groups > "Akka User List" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/groups/opt_out. > -- Cheers, √ *———————**Viktor Klang* *Chief Architect - **Typesafe <http://www.typesafe.com/>* Twitter: @viktorklang -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: http://akka.io/faq/ >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/groups/opt_out.
