Not only can you use the published resources described in section Publishing resources, but also those resources obtained from a real path. The difference between real path resources and published resources lies in the way of managing them. Published resources are managed in JReport Server totally. Real path resources are managed in both the server and the operating system. In the server, when accessing a resource node which is linked with a real path, the local resources in the real path are loaded to the node and displayed together with other server resources (including the published resources) in the node. You cannot delete the real path resources directly from the server UI, but can only achieve it by removing the resources from the local disk.
To use real path resources, you should specify a real path for a virtual folder. You can then add or remove resources into or from JReport Server by adding or removing them into or from the real path. Also, if you do not want to publish resources to the server by using the publish feature, you can set a real path instead.
The following example uses the resources in the folder /SampleReports obtained from the real path:
C:\JReport\Server\reportbak
, then click OK to save the changes. C:\JReport\Server\reportbak
, create three sub directories report1, report2, and report3, and then copy some reports and catalogs into them.
Now end users can perform operations on the real path resources, including viewing versions, setting properties, and report based operations such as running, advanced running, and scheduling.
Notes:
C:\FolderABC
, has a sub folder DEF. The real path of DEF need not necessarily be a folder in C:\FolderABC
. It can be any folder.JReport Server enables setting the default real paths for the Public Reports and Public Components folders without having to log onto the server. There are two ways to achieve this goal: setting the real path during or after installation.
<install_root>\bin
directory. When the server starts, it retrieves the file contents, and then sets the real path for the Public Reports and Public Components folders. Note that the file is deleted after the server has loaded the file contents. If you want to set the default real paths for the Public Reports and Public Components folders after installation, you can create an install.server.properties file in the <install_root>\bin
directory manually. Specify the content in the file as follows:
server.publicReportsRealPath=D:\JReport
server.publicComponentsRealPath=D:\JReport