Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Designing Analytics Reports
use Spring beans inside a BIRT report
Migrateduser
Hi guys,
I have a problem related to the BIRT reports.
The problem is that my application uses spring, and the objects can
not be instantiated directly. Instead they have to be accessed through the
web application context like -
///////////////////////////////////////////////
WebApplicationContext wapp =
WebApplicationContextUtils.getRequiredWebApplicationContext(getServletConfig().servletContext());
return wapp .getBean(name);
///////////////////////////////////////////////
If I could get servletContext somehow in BIRT, this could be used.
However, I could not find the way to do this and I would need to find a way to access it from the BIRT report.
If you have any ideas, please let me know.
Find more posts tagged with
Comments
There are no comments yet