|
Re: how to integration birt into a spring application [message #83376 is a reply to message #83352] |
Sun, 23 October 2005 13:20 |
Eclipse User |
|
|
|
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?
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03433 seconds