简体   繁体   English

我们可以在单独的服务中而不是在liferay中使用Liferay罐吗?

[英]Can we use Liferay jars in standalone services not inside liferay?

We have build our portlet using liferay 5.2 and in our portlet we use TagService in our services. 我们已经使用liferay 5.2构建了portlet,在portlet中,我们在服务中使用了TagService。 We are now planning to move to SOA, and would be moving services out of liferay and deploy them as RESTful services in a seperate server, only UI controllers would remain in the liferay portlet which would consume the REST services. 我们现在计划迁移到SOA,并将服务从liferay中移出并将它们作为RESTful服务部署在单独的服务器中,只有UI控制器将保留在liferay portlet中,而后者将使用REST服务。

The problem we have is that we use tag service for inside our services in search and hence we cant move it out. 我们的问题是我们在搜索服务内部使用了标记服务,因此无法将其移出。

One solution is to rewrite the Tag Services which will query the liferay DB and fetch the data for our services.Other solution could be to include the liferay-impl jars for TagService. 一种解决方案是重写Tag Services,该查询将查询liferay数据库并获取我们服务的数据。另一种解决方案是包括TagService的liferay-impl jar。 I am not sure if this is doable and how much complicated this would get? 我不确定这是否可行,这会导致多少复杂? Has anyone done something similar before? 有人做过类似的事情吗? Or Am I missing something? 还是我错过了什么? Any thoughts? 有什么想法吗?

Why dont you use Liferay webservices and build your TagServices? 您为什么不使用Liferay Web服务并构建TagService? The following links may be of some help Accessing Liferay web services 以下链接可能会有所帮助访问Liferay Web服务

and

Consuming Lifeary Web Services 消费生命周期Web服务

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM