Raju Uppalapati:
Jason,
A simple solution I can think of is:
1. Maintain a staging domain of Glassfish (non clustered and default install). Preferably on your dev box.
2. Deploy your developed Portlet onto this Liferay instance from the hotdeploy directory.
3. Copy/FTP the modified Portlet WAR file that liferay creates in the glassfish auto deploy directory to the host where your cluster Domain Admin Server is running.
4. Execute asadmin: asadmin deploy --target cluster1 myPortlet.war
5. This command will transfer this WAR to all the remote and local instance part of this cluster and deploy it on each of them.
If you undeploy the portlet form the cluster (via admin console or cli), Liferay will detect that its gone and remove references from it.
We are starting work in publishing a Wiki Article for running Liferay on a Glassfish + MySQL cluster.
Would you like to participate in it?
thanks,
_raju
PS: I have not tried the above instructions but theoretically they will work. If you run into trouble please feel free to post your experience.
Well, My cluster will be on PostgreSQL. PostgreSQL it self will be a Master master cluster.
I'd love to help as much as I can.
My other problem with Liferay is the fact that you can not run 2 instances of it under one domain. Not all JNDI name references are in .xml files that I can change with out editing source.
In my example of how I got the deploy to work in my first post, I skipped hte steps of the copy to the admin server and drop in the autodeploy (and retarget). But manually deployed hte war file to the cluster
Example:
Upload .war file to liferay. allow it to realize a new .war file is on it's way.
Take the same .war file I uploaded from my desktop, and did a manual deploy via the Glassfish GUI to the cluster. Liferay failed to pick it up.
Does it modify the .war file when you pass it though the liferay autodeploy process?
Gota keep in mind here that I (admins) will not be deploying these .war files. I suppose a scheduled job could take care of hte copy and deploy via the CLI. I was looking for something more graceful, but if liferay doesn't fully do everything with clusters in mind, there's really not much I can.
Your suggestions will be tried out and considered.
Please sign in to flag this as inappropriate.