• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Portlet Services

 
Bhargav N Balasubrahmanya
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • 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?
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic