Fórum

How to Automate new Instance Creation ?

thumbnail
Roberto Reverol, modificado 8 Anos atrás.

How to Automate new Instance Creation ?

New Member Postagens: 2 Data de Entrada: 13/03/15 Postagens Recentes
I am new in liferay. I have been trying multitenant features and would like to know how to automate new instance creation.

I would like someone to indicate the whole process in general, in order to select the learning path. Should I write a new portlet ? Should I use the scripting engine? Maybe both of them?
thumbnail
Sandeep Nair, modificado 8 Anos atrás.

RE: How to Automate new Instance Creation ?

Liferay Legend Postagens: 1744 Data de Entrada: 06/11/08 Postagens Recentes
thumbnail
Olaf Kock, modificado 8 Anos atrás.

RE: How to Automate new Instance Creation ?

Liferay Legend Postagens: 6403 Data de Entrada: 23/09/08 Postagens Recentes
Somehow everything else but instance creation sounds like more prone to automation to me. However, if you're going to go this way: It depends on your automation requirements: If you have an external system that triggers the need for a new instance, the API seems like a good way to go. If it's triggered from Liferay itself, you probably have some kind of UI, most likely in a portlet. This portlet would use the same API to create a new instance. Or, if you have only an occasional new instance, every now and then (as I perceive as the more common usecase) just use the UI in ControlPanel.

Database Shards, as Sandeep Nair mentions them, are not a good candidate for automation: They're assigned to the different instances "round robin", if you have 2 shards but 3 instances, one of the shards will contain data for two instances. Also, they typically don't solve the problem that you think they solve - I'd go without them. Introducing a new shard to the portal involves a restart. Getting rid of one is a serious operation.