Singleton class to be shared among multiple portlets

后端 未结 3 915
广开言路
广开言路 2021-01-06 20:24

I have a couple of Singleton classes in a Liferay application that hold several configuration parameters and a ServiceLocator with instances to WebServices I need to consume

3条回答
  •  醉梦人生
    2021-01-06 20:52

    With maven portlet you can make a common Spring component and import in the pom of each portlet. Another solution is to use service builder. Spring MVC portlet would be the most recommended for this.

提交回复
热议问题