Simple example that shows how to create a simple file-based Atom server with the ROME Propono FileBasedAtomHandler.
First, use Ant to build the example to the dist directory.
For example on UNIX:$ cd examples/atomserver $ antOr on Windows:
> cd examples\atomserver > ant
The build process will create sample-atomserver.war
in the
SWDP_HOME/rome-propono/samples/atomserver/dist
directory.
Next, deploy the sample-atomserver.war to your Servlet container. Ensure that the WAR file is expanded at deploy-time because the file-based Atom implementation stores file under the Servlet context directory. Most Servlet containers (e.g. Glassfish and Tomcat) will will do that by default.
Once you've deployed the WAR file, you can use an Atom protocol client program to create, retrive update and delete entries in the collections provided by the server. For example, several of the Blogapps examples (http://blogapps.dev.java.net) will work with the sample-atomserver.
In particular, you can use the Blogapps MatisseBlogger sample to create and edit Atom entries. To build and run MatisseBlogger, all you need to do is (on UNIX):
$ cd blogapps/matisseblogger $ ant $ ant runOr this on windows:
> cd blogapps\matisseblogger > ant > ant run
Once the MatisseBlogger application starts, create a new account via the New Account button and use these parameters:
http://localhost:8080/sample-atomserver/app