How do I use the Report Engine bundled in a war, not 'installed' separately on the system? [message #181326] |
Mon, 31 July 2006 10:58  |
Eclipse User |
|
|
|
Originally posted by: Scott.Merrick.digilore.com
Hello,
OK I have successfully gotten my web application to use the BIRT Report
Engine to create reports using the Report Engine copied ('installed') to
a folder on my system.
I would prefer to have it as part of the web application. But I am
having trouble finding examples to see how this is done
The BIRT Viewer web application (Birt.war contained in the
birt-runtime-2_1_0) is exactly what I want to do, bundle the Reporting
Engine in the web application preventing the need to 'install' the
Report Engine to the local file system
However have tried to find the code for the WebViewerExample and I don't
know where to look.
I see that the required libs and the 'platform' (contains the eclipse
plugins etc...) are placed in the WEB-INF dir but what do I use for the
config.setEngineHome?
With the Report Engine 'installed' in a folder on my system I use the
following code to init the report system
....
if( rptEngine == null ){
EngineConfig config = new EngineConfig();
config.setEngineHome("C:/Development/BIRTStuff/birt-runtime-2_1_0/ReportEngine ");
rptEngine = new ReportEngine( config );
}
....
With the Engine bundled in my application war what do I use?
What else do I need to do to get this to work??
Thanks for your time.
Scott Merrick
|
|
|
|
Re: How do I use the Report Engine bundled in a war, not 'installed' separately on the system? [message #182831 is a reply to message #181414] |
Fri, 04 August 2006 11:30  |
Eclipse User |
|
|
|
BTW, I have added some examples on the Eclipse Wiki.
http://wiki.eclipse.org/index.php/BIRT_Report_Engine_API
Jason
"Zeb Olaf" <zebonebo@gmail.com> wrote in message
news:eamf5t$f18$1@utils.eclipse.org...
> Scott,
>
> I did this a while back and had to get some help from Jason Weathersby
> who gave me the following info and it works (I have attached his zip to
> this post as well).
>
> The following is quoted from Jason W.:
>
> Attached is an example of a servlet that i modified to use for 2.1.
> You will notice i set birt home to "" (this is key) and the engine is a
> singleton. The directory structure under Webapps looks something like
>
> Webapps
> WebReport (my example app)
> Images
> Reports
> WEB_INF
> lib
> platform
> plugins
> configuration.
>
> 1 - Create the platform directory and copy the
> ReportEngine/configuration and ReportEngine/plugins folders from the
> runtime into this directory.
> 2 - Copy all the jars in the birt-runtime-2_1_0/ReportEngine/lib
> directory from the Report Engine download into your WEB-INF/lib
> 3 - Copy itext jar to the platform/plugins folder under the lowagie plugin
> 4 - Copy the JDBC driver to the JDBC plugin under platform/plugins
>
> So basically you copy the pertinent parts of the BIRT example web app
> into your own project keeping the deployment structure the same. I also
> found that it was helpful to add some of the context-param entries found
> in the example web.xml file to my own web.xml file. What jason provided
> me with should get you started in the right direction.
>
> Good Luck,
> Zeb.
>
>
> Scott Merrick wrote:
>> Hello,
>>
>> OK I have successfully gotten my web application to use the BIRT Report
>> Engine to create reports using the Report Engine copied ('installed') to
>> a folder on my system.
>>
>> I would prefer to have it as part of the web application. But I am
>> having trouble finding examples to see how this is done
>>
>> The BIRT Viewer web application (Birt.war contained in the
>> birt-runtime-2_1_0) is exactly what I want to do, bundle the Reporting
>> Engine in the web application preventing the need to 'install' the
>> Report Engine to the local file system
>> However have tried to find the code for the WebViewerExample and I don't
>> know where to look.
>>
>> I see that the required libs and the 'platform' (contains the eclipse
>> plugins etc...) are placed in the WEB-INF dir but what do I use for the
>> config.setEngineHome?
>>
>> With the Report Engine 'installed' in a folder on my system I use the
>> following code to init the report system
>> ...
>> if( rptEngine == null ){
>> EngineConfig config = new EngineConfig();
>> config.setEngineHome("C:/Development/BIRTStuff/birt-runtime-2_1_0/ReportEngine ");
>> rptEngine = new ReportEngine( config );
>> }
>> ...
>> With the Engine bundled in my application war what do I use?
>>
>> What else do I need to do to get this to work??
>>
>> Thanks for your time.
>>
>> Scott Merrick
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.11183 seconds