Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Portlet Services

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I was able to make use of the portlet services. But now, i want to use spring injection in the services project. how do i proceed with it?
 
author and cow tipper
Posts: 5006
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there a problem you are anticipating?

Spring, as an IOC application framework, shouldn't be any more difficult to use in a Portlet Service or Portlet Application than it would in any other Java or J2EE application.

Learn and understand Spring, and you shouldn't run into too many problems.

-Cameron McKenzie
 
Bhargav N Balasubrahmanya
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Cameron, i was actually facing problems with this earlier.
I could create a simple portlet service and use it in my portlet application.
The portlet service, when run independently with the spring injection ran fine.
But when i tried running it as a service(in the sense, use it in my portlet application), it used to cause me problems saying, the spring-beans.xml was not found. If the give the absolute path of the xml in the application, it would work fine, but the relative paths were causing problems.
It's ok now. i could solve it with some changes in my code.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic