MongoDB和BIRT报告? [英] MongoDB and BIRT Reporting?

查看:63
本文介绍了MongoDB和BIRT报告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人使用BIRT从MongoDB生成报告吗?您能描述如何,出现任何问题等吗?

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

似乎可以使用JDBC和此实验性驱动程序进行接口: https://github.com/erh/mongo-jdbc

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

但是,我不确定如何在Eclipse中安装此驱动程序以对其进行测试.

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

推荐答案

我已成功将BIRT与MongoDB集成在一起-效果很好. 这样做的想法是-在BIRT中定义脚本化数据源,然后定义使用该数据源的数据集.数据集具有一个打开"事件,您可以在该事件中调用Mongo Java Driver,然后对MongoDB执行查询(并获取DB游标).然后,在获取"事件中,您基本上会获得游标的下一个值,将游标中的数据填充到数据集中.

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.

之所以可行是因为BIRT脚本利用了具有Java集成功能的RHINO Javascript引擎.将MongoDB Java驱动程序放在类路径中并开始编码:)

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 :)

这篇关于MongoDB和BIRT报告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆