Results 1 to 2 of 2

Thread: Jasper report loading and Quartz Jobs

  1. #1

    Default Jasper report loading and Quartz Jobs

    Hi,

    i need to load files(jasper report) from a quartz job. The files are in my web-inf/reports directory. What is the best way to do this ?

    How can i pass or get the correct path to this file ?

    Thanks,

    Fabien

  2. #2

    Default

    I found a classical solution but no so bad

    Code:
    ClassLoader classloader = Thread.currentThread().getContextClassLoader(); 
    InputStream inputstream = classloader.getResourceAsStream(localisationReports+"/"+reportName);
    Hope it will help others,

    Fabien

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •