Safari
Safari

Reputation: 11935

Liferay configuration with many instances

a question about Liferay configuration..

I have found it:

If you want to expose multiple websites with different domain names from the same portal installation then you will have to create multiple portal instances. Portal instance can be created from liferay control panel. The data for all the instances resides on the same database. Every table in liferay has a column - companyId. For each portal instance there is a unique companyID. This id is ued to distinguish data for multiple websites. You can use sharding technique if we want to physically store data for different instances into different databases.

Is possible to create many Liferay instances with separate - data and users data (for login) shared in all liferay instances?

Upvotes: 1

Views: 2286

Answers (1)

Prakash K
Prakash K

Reputation: 11698

If I understand correctly you are saying you want to have some Users and some data which will be visible in all the Companies or Portal Instances, for eg:

  1. There are 3 portal instances: C1, C2 & C3
  2. Each instance has users: C1U1, C1U2, C2U1, C2U2, C2U3, C3U2 & so on. These users will be able to login to their respective instances only.

So now you want to create few users like U1, U2, U3 etc which can login to all the 3 liferay instances? That is they would be shared between all the 3 liferay instances or would be independent of the 3 instances?

In the same sense do you want to have Blogs, Wikis etc created that would be visible to users of all 3 liferay instances?

Solution
If the above is what you want, then as far as I know there is currently no feature to support sharing among Portal Instances. Sharing data among Sites we have Global scope, but we can't have shared users or data among Portal Instances.

All the instances are separated by companyId, this companyId is present in all the database tables of Liferay to separate the data among portal instances.

As per the documentation for Portal Instances:

Data for each portal instance are kept separate from every other portal instance. All portal data, however, is kept in the same database.

So the very philosophy is to have the data separate it seems.

Upvotes: 2

Related Questions