留言板

Exclude Liferay's OSGI bundle on Startup

Kunal Contractor,修改在7 年前。

Exclude Liferay's OSGI bundle on Startup

New Member 帖子: 4 加入日期: 16-7-1 最近的帖子
I have installed Liferay 7 to develop application. When Liferay 7 started, I found that it started more then 400+ OSGI bundles/services. So is there any way that we configure Liferay to only load specific bundles only? Or we can provide list of OSGI bundles/services to be excluded on start up of Liferay?
thumbnail
David H Nebinger,修改在7 年前。

RE: Exclude Liferay's OSGI bundle on Startup

Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
You have to uninstall the bundles in gogo, then delete the module jars from the $LIFERAY_HOME/osgi directory to prevent them from coming back after restart.

Care should be taken if you don't know what you're doing, if you delete the wrong bundle your portal may be unusable as a result.
Kunal Contractor,修改在7 年前。

RE: Exclude Liferay's OSGI bundle on Startup

New Member 帖子: 4 加入日期: 16-7-1 最近的帖子
Thanks for the reply.
In gogo shell, it list about 505 OSGI bundles, but inside $LIFERAY_HOME/osgi it only show few folders with few JAR(OSGI bundles), meaning it does not show 505 JAR files.
I have found that once server is started then it creates "state" folder inside $LIFERAY_HOME/osgi folder. It shows of all 505 folder with "0" folder inside which seems mapping to deployed OSGI bundles.

So as per your comment, when i try to uninstall bundle with ID 505 (Name:Liferay XSL Content Web 2.0.2), then it will also removes folder "505" from "state" folder. When I restart the server, then that bundle will be re-installed with ID 506.

So can you tell me after uninstalling from gogo shell, from which physical directory do I have to remove respective bundle?
thumbnail
Muhammed Shakir,修改在7 年前。

RE: Exclude Liferay's OSGI bundle on Startup

Junior Member 帖子: 36 加入日期: 09-2-26 最近的帖子
Hi David,

The exact requirement is that we need to architect solution on LR based on principles of micro services architecture. LR portal is still a monolith when it comes to deployment. It is not possible to deploy each OSGi module into a separate container on Docker of Cloud Foundry. We are mulling the idea of deploying just the portal container of LR 7 in each container, light enough to start only (and only) the service we want in that container. Each OSGi service thus deployed in the container will be a micro service that will run in a light-weight LR 7 portal container. Hence, we want to know whether we can downsize LR 7 to a level where in it runs only with its architectural services and no functional portlets like Blog, wiki, DL etc.