Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

JRI Path Reports to S3 on AWS #64

I'm thinking, would it be possible to store Jasper files (my reports) in S3 (AWS) and access them from jri.war in the Tomcat web server? Because I want to have two instances with a load balancer? and share the same reports.
Thanks

  • replies 1
  • views 941
  • likes 0
#2

Hi @oegidio,

good question.
Is it possible to "mount" the AWS directory as a regular filesystem on your Tomcat server?
Then you can use the reportsPath parameter in the application.properties configuration file:

# report definition files will be looked up in the following order as
#   specified by the reportsPath, e.g.: 
#     Linux/macOS: reportsPath=../reports,/path/to/reports1,/path/to/reports2,/path/to/reports3
#     Windows: reportsPath=..\\reports,c:\\path\\to\\reports1,c:\\path\\to\\reports2,c:\\path\\to\\reports3
#   If the reportsPath is left empty or not defined, then the default is "../reports" (*nix) or
#      "..\\reports" (windows) respectively, will start from the location of the application.properties (this)
#      file
reportsPath=

Alternatively, you could run a job on each application server to copy the current version of the reports your your local Tomcat instance. Not ideal, but a possible workaround.

Best,
~Dietmar.