Jump to content
Changes to the Jaspersoft community edition download ×

How should I use MongoDbDataSource since the newer version 1.0.0 doesn't have a CONNECTION symbol?


dragon.yinn

Recommended Posts

 

Hi:

When mentioning MongoDB and JasperReport, all the articles I can find is to use 

parameters.put(MongoDbDataSource.CONNECTION, connection);

to combine MongoDbDataSource / MongoDbConnection. And this works with "js-mongodb-datasource-0.5.0.jar", which can be downloaded from JasperSoft website.

 

However, I found that a newer version (1.0.0) comes accopanied with iReport 5.1.0. Since it's newer,  I gave that the first try, and the JVM told me that "The CONNECTION symbol can't be located"! And then I tried to use the older one, and succeeded to compile. 

 

Being through this, I wonder whether there's a documentation or some notes to tell me how to combine the connection and the data source? The version numbers differ so much, is there a performance improvement from the older one? Hope that someone can tell me , thanks.

 

parameters.put(MongoDbDataSource.CONNECTION, connection);
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...