JReport provides two ways for the application to call JReport directly without using JSP pages and URLs.
If you want the entire JReport Server to run in the context of your application in the same JVM you can use the Server API. The Server when started this way starts a number of threads and runs exactly the same as when the server is started as a standalone server. The server just starts with the application and stops with the application. All access to the server such as RMI access from other applications is still allowed.
|
It is exactly the same code as above except you get a remote handle to the RPTServer.
|