Table of Contents
Purpose
JasperReports Server and iReport Designer v4.5.1 and earlier do not ship with built-in connectors to MongoDB. These resources are provided here in order to enable JasperReports Server to access MongoDB data.
Editions of JasperReports Server v4.7 and greater include official support for MongoDB, backed by Jaspersoft Support.
Summary
- Obtain and unzip MongoDB-connector-for-Jaspersoft-bin-xxx.zip
- Deploy the MongoDB plugin to iReport
- Create a report
- Deploy the query executer to JasperReports Server
- Deploy the report to JasperReports Server
- Run the report
Details
1. Obtain and unzip MongoDB-connector-for-Jaspersoft-bin-xxx.zip
Import note: These steps are only required if you have JasperReports Server v4.5.1 or below
Download it from the project release area. The following files are included:
- plugin/MongoDbPlugin-0.11.nbm
- WEB-INF/applicationContext-MongoDbDataSource.xml
- WEB-INF/bundles/MongoDbDataSource.properties
- WEB-INF/lib/mongo-java-driver-2.3.jar
- WEB-INF/lib/MongoDbDatasource-0.11.jar
2. Deploy the MongoDB plugin to iReport
- Choose the menu Tools → Plugins.
Import note: These steps are only required if you have JasperReports Server v4.5.1 or below
From the tab "Downloaded" add the plugin file MongoDbPlugin-xxx.nbm
- : After installing the plugin you must restart iReport.
- Click the button "Report Datasources" to define a new connection to MongoDB.
See Also
Log in or register to post comments