Skip to main content



      Home
Home » Archived » BIRT » how to integration birt into a spring application
how to integration birt into a spring application [message #83352] Sat, 22 October 2005 22:47 Go to next message
Eclipse UserFriend
hi dev:
i want to integration birt to a spring base web app,as known the spring
is IoC container for POJO, but there is no POJO to injection the spring
manage data source.
How can i use birt in a spring base web app to get spring's POJO in
Birt's script data source?
Re: how to integration birt into a spring application [message #83376 is a reply to message #83352] Sun, 23 October 2005 09:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kamaljeet.sandhu.gmail.com

I got this working as of now - It does not "inject" but I still use the
configured beans in the context.

1. In the "open" code of the dataset :-

paths = new Array("applicationContext-resources.xml")
ctx = new Packages.org.springframework.context.support
.ClassPathXmlApplicationContext(paths);
manager = ctx.getBean("orderManager");
result = manager.getCustomerwiseOrders("customer",user);

2.In the "fetch" method of the dataset:-

if (count < c.size()){ //{

row["Customer"] = c[count].getName();
row["Quantity"] = c[count].getTotalQuantity();
row["Value"] = c[count].getAmount();
row["NoOfOrders"]=c[count].getNoOfOrders()
count ++;
return true;
}

return false;


Hope this helps, and would be interested in any comments on same as well
as alternate approaches.

Rgds,
Sandhu

Donald wrote:
> hi dev:
> i want to integration birt to a spring base web app,as known the spring
> is IoC container for POJO, but there is no POJO to injection the spring
> manage data source.
> How can i use birt in a spring base web app to get spring's POJO in
> Birt's script data source?
>
Re: how to integration birt into a spring application [message #948849 is a reply to message #83352] Thu, 18 October 2012 08:49 Go to previous message
Eclipse UserFriend
Below is good example for integrating birt within your web application.
It has provided one example in simple application web application which using simple servlet and some birt engine integration classes.

birtgrip.blogspot.in/2012/10/BirtIntegrationWithWebApplication.html
Previous Topic:Display Birt engine report on iPad
Next Topic:What designed version for BIRT 4.2.1?
Goto Forum:
  


Current Time: Sat Jul 05 10:57:57 EDT 2025

Powered by FUDForum. Page generated in 0.17205 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top