# Ruby equivalent to a Java context Listener

**URL:** <https://www.ruby-forum.com/t/ruby-equivalent-to-a-java-context-listener/153392>\
**Category:** Ruby\
**Created:** [November 16, 2008, 5:58am UTC](https://www.ruby-forum.com/t/ruby-equivalent-to-a-java-context-listener/153392 "2008-11-16T05:58:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thiago](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ec9cab/32.png) [@thiago](https://www.ruby-forum.com/u/thiago)\
**Post date:** [November 16, 2008, 5:58am UTC](https://www.ruby-forum.com/t/ruby-equivalent-to-a-java-context-listener/153392/1 "2008-11-16T05:58:01Z")

</div>

Hi people,

Is there any Ruby equivalente to a Java Context Listener? So I can  
execute some code and gather some data at the start of a Ruby container  
and keep it on and accessible at any time and from everywhere in my  
application?

TIA,  
Thiago.
