Will do. Cheers!!

On Tuesday, February 25, 2014 4:01:44 PM UTC+1, √ wrote:
>
> You're welcome.
> As for the behavior of spray.servler.Initializer—I do not know. Ask on 
> spray-user
>
>
> On Tue, Feb 25, 2014 at 3:55 PM, Tulio Domingos 
> <[email protected]<javascript:>
> > wrote:
>
>> Thanks for the response Viktor! 
>>
>> Do you mean create my own *ServletContextListener* (replacing 
>> spray.servlet.Initializer in *web.xml*) with similar implementation but 
>> adding system.shutdown() and system.awaitTermination() as part of the 
>> contextDestroyed()? I just tried that and seems to work fine now, thanks 
>> a lot! Just wondering though, if that's all it was, why isn't this already 
>> part of the default behavior in spray.servlet.Initializer?
>>
>> Cheers
>> Tulio
>>
>>
>>
>> On Tuesday, February 25, 2014 1:36:31 PM UTC+1, √ wrote:
>>
>>> 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/grou
>>>>>> p/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] <javascript:>.
>> To post to this group, send email to [email protected]<javascript:>
>> .
>> 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.

Reply via email to