BackPrevious Page Next PageNext

Getting and Using Resources from a Real Path

In addition to the published resources, you can also use resources obtained from real paths on JReport Server. The difference between real path resources and published resources lies in the way of managing them: published resources are managed on JReport Server, while real path resources can be managed on both the server and the operating system. On 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. Real path resources can only be deleted by removing 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. If you do not want to add resources to the server by using the Publish feature, set a real path instead.

The following example shows using resources obtained from the real path of the Public Reports folder:

  1. On the JReport Administration page, click Configuration on the system toolbar, then select Advanced from the drop-down menu.
  2. On the Configuration - Advanced page, check the Enable Resources from Real Paths option, save the change.
  3. Restart JReport Server.
  4. Go to the JReport Console > Resources page, locate the Public Reports folder, put the mouse pointer over the folder row and click the Properties button Properties button on the floating toolbar.
  5. In the General tab of the Folder Properties dialog, check Enable Resources from Real Paths, specify the real path for the virtual folder as C:\JReport\Server\reportbak, then click OK to save the changes.

    Enable Real Path

  6. Create the folder reportbak in C:\JReport\Server\, and the sub folders report1 and report2 in it, then copy some reports and catalogs into them.
  7. On the JReport Console > Resources page, open the virtual folder Public Reports. You can see the sub folders within it, including the reports and catalogs.
  8. Real Path Resources

    Now you 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:

Setting default real paths for the Public Reports and Public Components folders before server starts

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.

BackPrevious Page Next PageNext