|
|
|
Re: BIRT in MultiThreading Application [message #793181 is a reply to message #792627] |
Tue, 07 February 2012 21:22 |
|
Take a look at the attached example. It was done with BIRT 2.6.1.
Clear the birt home config setting if you are using 3.7 or >
Jason
On 2/7/2012 2:56 AM, Alessio Pollero wrote:
> I have integrated BIRT into my application with the API, is it possible
> ? I've tried to execute several reports at the same time, but reports
> are executed sequentially ...
|
|
|
Re: BIRT in MultiThreading Application [message #795323 is a reply to message #793181] |
Fri, 10 February 2012 10:27 |
donino donino Messages: 183 Registered: July 2011 |
Senior Member |
|
|
That's an interesting topic, i understand the sample but i just want to be sure it is only useful for a standalone application: in a j2ee tomcat context such web viewer, tomcat automatically embeds requests in new threads, am i right? Therefore we don't have to create new threads ourselves to use parallel report generation with a birt engine? Sorry if my question is stupid, may be i misunderstood something important
[Updated on: Fri, 10 February 2012 10:27] Report message to a moderator
|
|
|
Re: BIRT in MultiThreading Application [message #795556 is a reply to message #795323] |
Fri, 10 February 2012 15:53 |
|
You are correct. This was only an example to illustrate the engine
supports multiple threads. The Web container should take care of this
for you. If you are writing a servlet you may want to look at
http://wiki.eclipse.org/Servlet_Example_%28BIRT%29_2.1
Which shows how to wrap engine access in a singleton. No threads are
created by the code (this is done by the app server). Also keep in mind
in that servlet example it is showing deployment prior to 3.7, which now
has a POJO runtime which does not require the Platform directory.
Jason
On 2/10/2012 5:27 AM, donino donino wrote:
> That's an interesting topic, i understand the sample but i just want to
> be sure it is only useful for a standalone application: in a j2ee tomcat
> context such web viewer, tomcat automatically embeds requests in new
> threads, am i right? Therefore we don't have to create new threads
> ourselves to use parallel report generation with a birt enine? Sorry if
> my question is stupid, may be i misunderstood something important
|
|
|
Powered by
FUDForum. Page generated in 0.03811 seconds