Hi Jaynil
Jaynil A Bagdai:
I do have more than 70 portlets in my project. Any idea that if I want to move all these spring jars at global level how can I do that?
If you are using only services and (Spring MVC I have not tried) you can use Liferay interal Spring too so your portlet application will come lighter.
Add following to
/WEB-INF/web.xml1<context-param>
2 <param-name>portalContextConfigLocation</param-name>
3 <param-value>/WEB-INF/applicationContext.xml</param-value>
4</context-param>
and create
/WEB-INF/applicationContext.xml1<beans .....>
2
3 <bean id="my.service.MyService" class="my.service.MyServiceImpl"/>
4</beans>
These services are also visible to other web applications and to theme with PortletBeanLocatorUtil:
1PortletBeanLocatorUtil
2 .locate(servletContextName, "my.service.MyService");
If you want that other applications are able to see your pojos/intefaces then copy those to other jar file and put that under tomcat classloader
/<tomcat>/lib (but carefully minimize the depedencies, since you have to those too)
Please sign in to flag this as inappropriate.