MongoDB and BIRT Reporting?

☆樱花仙子☆ 提交于 2019-12-19 09:26:06

问题


Has anyone used BIRT to generate reports from MongoDB, can you describe how, any issues, etc. ?

It looks like it might be possible to interface using JDBC and this experimental driver: https://github.com/erh/mongo-jdbc

However, I am not exactly sure how to install this driver in eclipse to test it.


回答1:


I've successfully integrated BIRT with MongoDB - it works perfectly well. The idea is this - define a scripted data source in BIRT, then define a data set that using that data source. The data set has an "open" event in which you place the call to Mongo Java Driver and execute your query against MongoDB (and obtain a DB Cursor). Then in the "fetch" event you basically get the next value of the Cursor, filling data from the Cursor into the data set.

This is possible because BIRT scripts utilize RHINO Javascript engine which has Java integration. Place the MongoDB java driver in the classpath and start coding :)




回答2:


Try this http://code.google.com/a/eclipselabs.org/p/mongodb-oda-birt-plugin/

Let me know if you face issues. The user guide available in the Downloads section should be able to help you with the usage of the ODA.




回答3:


Birt has builtin support now for MongoDB :) http://www.eclipse.org/birt/phoenix/project/notable4.3.php#jump_5




回答4:


The JDBC has only one checkin for more as a year. I think the JDBC driver project is dead. JDBC and NoSQL are not compatible.

I think you need to write your own layer that create relational data from your NoSQL.



来源:https://stackoverflow.com/questions/6322506/mongodb-and-birt-reporting

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!