Use following code to get Spring ApplicationContext inside portlet
PortletContext portletContext = this.getPortletContext();
ApplicationContext context = PortletApplicationContextUtils.getWebApplicationContext(portletContext);
then use context to retrieve beans
context.getBean("beanName");
Note : spring-webmvc-portlet.jar is required.
Another more generic way of accessing Spring Application Context
http://mdshannan1.blogspot.com/2010/11/easy-access-to-spring.html
PortletContext portletContext = this.getPortletContext();
ApplicationContext context = PortletApplicationContextUtils.getWebApplicationContext(portletContext);
then use context to retrieve beans
context.getBean("beanName");
Note : spring-webmvc-portlet.jar is required.
Another more generic way of accessing Spring Application Context
http://mdshannan1.blogspot.com/2010/11/easy-access-to-spring.html
Comments
Thanks!
R, Aaron
here's my site too
some really fantastic info , Gladiola I noticed this.
Wuzzap?
Bob Peters, CA
In the event that theses are not flushed out they'll can be become very dangerous buy cymbalta cost People often get affected by weather changes. We know how to avoid it!
The usage of nitrate preparations induces relaxation to patient's internal sphincter experiencing severe hemorrhoid generic Viagra for women There are around 30 different exercises that you can do at different stages to continuously trigger growth
While most diet pills cost around $50 a bottle, OxyElite Pro can be found for around $35 at most online stores, which is a pretty good deal buy generic iressa This is also the reason why women prefer this because they can actually perform these exercises wherever they are
Penis Enlargement PillsYou have to be careful of what you buy and what you take if you want to be successful in getting a larger penis Astelin Tip 1 - Eat A Rainbow Every DayThe American diet is very conductive in producing a toxic environment in which disease and illness thrive and can easily invade and cripple our system