what about

http://gist.github.com/319889

???

regards
Kristian

On Wed, Mar 3, 2010 at 1:48 AM, Abhijit Hiremagalur
<a...@pivotallabs.com> wrote:
>>> For some additional context, our JRuby application is consuming JMS
>>> messages from a Websphere MQ instance. The 'ensure' blocks that we'd
>>> like to run close connections to this queue gracefully. Not doing this
>>> upsets the folks who manage these queues :)
>>
>> There's another option: don't rely on SIGHUP :) No other JVM-based
>> program would.
>>
>
> Interesting, a little spiking showed Java 'finally' blocks aren't run
> on a SIGHUP or SIGINT either, so JRuby's behaviour appears consistent
> with Java's.
>
> https://gist.github.com/881542ca3cca1281e959
>
> So if SIGHUP isn't an option, what would you say is a good way to tell
> a long running JRuby process to stop gracefully?
>
> I've googled around a little to see how Java folks approach this and
> haven't found a clear/consistent answer.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>



-- 
Kristian Meier + Saumya Sharma + Sanuka Meier
Vadakkethu House,
Edayanmula West PO - 689532,
Pathanamthitta District, Kerala, INDIA

tel: +91 468 2319577

protect your privacy while searching the net: www.ixquick.com

             _=_
           q(-_-)p
            '_) (_`
            /__/  \
         _(<_   / )_
      (__\_\_|_/__)

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to