title: How to add a listener to the requestcycle onbegin request?
body: <p>We are trying to get the server name, session id browser info... to keep the information in the MDC for logging.</p>
  
  <p>For this we are trying to add a listener in the <code>RequestCycle</code> of the <code>onBeginRequest()</code> of <code>IRequestCycleListener</code>.
  I have added a class  as follows:</p>
  
  <pre><code>public class RequestRListener implements IRequestCycleListener
  {
    @Override
    public void onBeginRequest(RequestCycle cycle)
    {
        //TODO 
    } 
  }
  </code></pre>
  
  <p>Now where to add the listener to get the above mentioned informations ?</p>