title: How to get Session/Request Object in child class of QuartzJobBean
body: <p>I am implementing cron job schedular to send periodic email with attachment in a web application. </p>
  
  <p><strong>Problem Description :</strong>
  For creating a file (that will be attached with mail) in java code, I need session object to get absolute path of file.</p>
  
  <p><strong>For example :</strong></p>
  
  <pre><code>request.getSession().getServletContext().getRealPath("/");
  </code></pre>
  
  <p>we use to get path.</p>
  
  <p>So how can I implement/ get session object? Or is there any other way to get relative path of a file?</p>
  
  <p><strong>Note:</strong> I need to create attachmnet file in WebContent/MyFolder.</p>