Alexy,
We're currently using Liferay on CloudFoundry. Comments below.
> 1. Then application create (to deploy into liferay) - it is still asked for DB Configuration. Is these settings (db name, username/password) used later by liferay server itself to connect to DB? Or it is used some own connection configuration? The thing is - in liferay - not a portlet (application in our case) responsible for DB connection - but liferay (connector in our case) itself - portlet in most cases just reused that connection
The DB settings are for Liferay itself (lportal /lportal). Right now CloudFoundry isn't setup to deploy portlets. The WAR that you deploy for a new Liferay instance is really just a dummy WAR.
> 2. To deploy portlet into liferay - it is not the same as deploy war into it's container (tomcat6 in our case). Then we deploy portlet into liferay via (for example) Liferay's Control Panel - Liferay did some modufications (like added required tlds or libs into that war). As result - it is not possible to just put portlet war into application (to run later in liferay container) - user need to do such modifications by hand.
You're right.
>3. Liferay container has default liferay distribution - with some extra staff like WOL portlet or 7Cog hook portlet. As result, liferay started with demo organization created - and, it is very hard to remove it (to use liferay in production with own data) via liferay's control panel. I think it is better to do not include them - since they used mostly for demo - and not usable in production liferay installation
That's a good question. After all, that is the default installation, and 7Cog is useful for new users. It's not that hard to remove.
> 4. As we already discussed - required configuration to run Liferay in clustered environment is missed - as result, it is almost inpossible to use it in multi-instance environment
This could still be done manually, but you're right -- it's not handled by CloudFoundry.
Right now, it's certainly more flexible to install Liferay as a WAR using Spring tc server or Tomcat. Your writeup is an excellent resource for this. I'll be talking to the CloudFoundry folks and the Liferay folks about how to make this easier going forward, because we're planning on using Liferay for a few sites on CloudFoundry.
--
Kito D. Mann -- Author, JavaServer Faces in Action
http://twitter.com/kito99 http://twitter.com/jsfcentral
JSF 2 Seminar Oct 6th: http://www.regonline.com/jsf2seminar
JSF Summit Conference Dec 1st-4th in Orlando: http://www.jsfsummit.com
http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info
+1 203-404-4848 x3