Re: How to export a jahia site on a new machine.

Stéphane Croisier <[email protected]> Wed, 06 Sep 2006 09:20:09 +0200
Newsgroups gmane.comp.cms.jahia.install
Message-ID <[email protected]>
At 09:45 05.09.2006, you wrote:
>Hi,
>I have created a jahia 5.0 site with some 
>portlets on my local machine. Now I want to 
>export it to another machine for demo.
>How should I go about it? I checked out the xml 
>import export feature but looks like it can only 
>export portions of the site and it also doesn't export portlets.
>Also checked the "Manage Distant Site for Auto 
>Export" in administration but couldn't 
>understand what exactly it is for and whether it will fulfill my needs.


You're right. The Export or Replication features 
(which basically use the same import/export 
utility) does not directly handle portlets export 
but just content replication. Portlets are 
another beasts. These are custom and specific 
webapps which run in their own Java context. So 
for example in Tomcat (and this is the same for 
all the other J2EE servers), the Jahia webapp can 
not access to the portlet API. Morevover each 
J2EE server has another manner of deploying and 
managing webapps. Finally each portlet can have 
its own DB pool connections and other kind of 
connectors/settings/.... So most of the time, 
replicating a portlet is not just as easy as 
making a new war file and redploying it on the 
other server. So you will have to manage that on 
your own. (regarding the jahia portlets, most of 
the time they are prepackaged with en embedded 
HSQL DB, so you can just take the portlet 
directory in /Tomcat/webapps and copy it into the 
other server, reinitilaize the portlet in the 
Admin Center, then make a syncro with the Manage 
distant Site export and you will have the same 
web site, portlets included. Warning: if the 
content of your portlets is different from one 
server and the other (e.g. you deployed a 
discussion forum and you have tow different set 
of discussion threads on each server) you will 
have to deal with the merge of the DB yourself. 
Here again the portlet is a standalone dedicated web application...

Cheers,
Stéphane


>Thanks
>Sanjay Goel
><http://sanjaygoel.blogspot.com>http://sanjaygoel.blogspot.com