Thursday, May 8, 2008

BIRT Reports and Spring

I've been working to integrate BIRT with Spring and make some basic report on-the-fly modifications as drop elements and add translations (i18n purposes). Here, BIRT is used as a reporting tool and not as a Bussines Intelligence tool: just get a report template and fill it. Our web applications work with POJOs so I use them as datasources.

I've followed the approaches from these two posts:
http://internna.blogspot.com
http://blog.xebia.com

Finally, I use a mixt solution. I prefer easy configuration and then I have just one MVC controller bean to configure. So, this controller must start the report engine. The key point is start it just once; to do it I create a static class with a static IReportEngine attribute. The first user to ask for a report will wait just a bit more than the rest.
Using a controller makes also easy to use PlatformContext because the handleRequestInternal method receives the request and we can get ServletContext from it.

Welcome!

This is a blog about my work as IT developer, yeah! that's a cool name for a man seating in front of a PC while struggling with Java, Eclipse, Firefox plug-ins, Tomcat, Maven and so on.
I will try to write here what I'm learning about web applications development and its related technologies. The main purpose is to write some kind of a tech tips repository.