I wasted a few hours (and i hope you will not) to use WLST command to import metadata into WebCenter spaces PS2 application in a cluster environment.
The weblogic server topology was as follows, each of them running 2 managed servers for WebCenter.
Note: Server 1 and 2 were different physical machines
- Server1 had WLS_Spaces1 and WLS_Spaces3
- Server2 had WLS_Spaces2 and WLS_Spaces4
I tried to export meta-data using following command from MDS after connecting to AdminServer, replaced the page in export directory and import back.
I received a message that 1 document has imported into MDS successfully, but somehow my changes were not visible.
When you export the documents from MDS in a cluster it creates a export directories (in my case /home/oracle/mds) on the same machine where managed server is running i.e. Server1 and Server2 machines.
So, my import statement was importing the same export page which was already in the repository.
For easy understanding i created a separate directories for all managed servers and replaced the page on both machines then imported into MDS.
Here is the complete command list.
Hope you find it useful,