Home
Analytics
BIRT (Web Viewer) integration with OSGi
mukulobj
Dear BIRT Exchangers,
I am new to BIRT dev and trying to integrate BIRT RE in my application. My application is developed on top of OSGi that is plug-in base in nature.
So far I am able to write a small program/servlet to wrap up the RE API. It reads an existing report design, i.e. .rptdesign, file and create an HTML or PDF report out of it and stores it in local file system.
Based on my little BIRT knowledge, in order to show these generated reports, I need to integrate BIRT Web Viewer in my application. I have also found in case of traditional WAR we can integrate ViewerServlet through web.xml file.
As I am writing an OSGi based application, I don't have a web.xml file to configure the viewer servlet.
Can anybody suggest, how can I integrate ViewerServlet in OSGi based applications ?
Find more posts tagged with
Comments
JasonW
Take a look at this thread:<br />
<a class='bbc_url' href='
http://www.birt-exchange.org/forum/deploying-integrating-birt-report-engine-applications/17804-birt-report-engine-vs-report-viewer.html'>http://www.birt-exchange.org/forum/deploying-integrating-birt-report-engine-applications/17804-birt-report-engine-vs-report-viewer.html</a>
;
karthikr
Hi Jason,
Thank you very much for your replies. They were very helpful and very insightful. We investigated a little bit more today and were able to make progress. We realized the difference between the Birt Report Engine and Birt Report Viewer.
Just to Summarize our understanding,
Birt Report Viewer is an example of deploying Birt Report Engine on an RCP Application.
We are now able to deploy Report Engine as an OSGi Plugin and use the APIs to generate a report, We are then able to take the resultant output and display it on the browser by setting the MIME mapping and contentType.
We have basically included everything(all the BIRT JARS) in the target Platform for now, Would the Configuration that you attached in this post be enough for plugin dependencies on Report Engine.
Can you please let us know your thoughts on the same. ?
We are also having one issue of not getting the servlet Context Path using OSGi , so for testing purposes we have to hardcode the path of the report design files. We understand that using OSGi, we might have to manufacture our own Servlet Context. Can you throw light on this aspect as well ?
Thanks a lot for your help
JasonW
answered in this thread:<br />
<a class='bbc_url' href='
http://www.birt-exchange.org/forum/deploying-integrating-birt-report-engine-applications/17804-birt-report-engine-vs-report-viewer.html#post57565'>http://www.birt-exchange.org/forum/deploying-integrating-birt-report-engine-applications/17804-birt-report-engine-vs-report-viewer.html#post57565</a>
;