Hello developer-type of people,
This weekend I added the code of the Remote Publishing stuff to
http://mmapps.sourceforge.net. People who want the source code can get it by
anonymous cvs. I haven't made a file release, because I don't have those
priviliges (yet?).
Some information:
REQUIREMRNTS
------------
MMBase 1.7 (mmbase.jar)
MMBase rmmci (mmbase-rmmci-server.jar)
FILES
-----
\anttools\build.xml
\anttools\live.properties
\anttools\staging.properties
Examples of ant scripts if that is what you are using for your project
\config\applications\Publisher.xml
\config\applications\Publisher\builders
\config\applications\Publisher\cloud.xml
\config\applications\Publisher\builders\cloud.xml
\config\applications\Publisher\builders\publishqueue.xml
\config\applications\Publisher\builders\remotenodes.xml
Mmbase configuration files. The Publisher application contains all builders
for remote administration
\src\org\mmbase\remotepublishing\CloudManager.java
Get a cloud object based on the cloud nodes in mmbase
\src\org\mmbase\remotepublishing\PublishException.java
Exception thrown when publication fails
\src\org\mmbase\remotepublishing\PublishManager.java
This one does all the remote cloud clone stuff.
\src\org\mmbase\remotepublishing\action\PublishingAction.java
Action interface which is called when something happens on the remote cloud
\src\org\mmbase\remotepublishing\action\PublishingActionDummy.java
Dummy action interfaace implementation
\src\org\mmbase\remotepublishing\builders\PublishingBuilder.java
Builder class which adds the node to the publishqueue when inserted or
updated
\src\org\mmbase\remotepublishing\builders\PublishingQueueBuilder.java
Builder which maintains a queue of publish information nodes. A thread
inside this builder clones the nodes to the remote cloud
\src\org\mmbase\remotepublishing\builders\PublishRelationBuilder.java
The same as the PublishingBuilder but then for relations
\src\org\mmbase\remotepublishing\util\GenericNodeIterator.java
Iterator for the GenericNodeList
\src\org\mmbase\remotepublishing\util\GenericNodeList.java
NodeList used to list remote nodes
\src\org\mmbase\remotepublishing\util\PublishUtil.java
Utility class to add nodes to the publishqueue
INSTALLATION
------------
Add the files to your project.
Compile the java source files.
Add the following to you mmbase applications xml file:
<requirements>
<requires name="Publisher" maintainer="mmbase.org" version="1"
type="application"/>
</requirements>
Integrate the example buildfile with your own.
Modify the staging.properties and the live.properties.
Run your ant build file.
Deploy both web applications
Enjoy,
Nico
----------------------------------------------------
Meets quality standards: It compiles without errors.