Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » how to integration birt into a spring application
how to integration birt into a spring application [message #83352] Sun, 23 October 2005 02:47 Go to next message
donald is currently offline donaldFriend
Messages: 1
Registered: July 2009
Junior Member
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 13: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 12:49 Go to previous message
vikram Paygude is currently offline vikram PaygudeFriend
Messages: 1
Registered: October 2012
Junior Member
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: Mon Dec 22 08:38:11 GMT 2014

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

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