This module is view-only. You do not have an enrolement for this module.

Hello World with Caldav and Annotations

In this tutorial we're going to create a very simple Caldav implementation. This will be useable with caldav clients like Thunderbird/Lightning, Apple's iCal and mobile devices such as iPhone/iPad and Android (using third party Caldav app)

This example just uses in-memory objects for the sake of simplicity, but these objects could just as easily be persistent hibernate objects etc, and that is the intended use case.


Milton's caldav support is provided in the enterprised edition jar. Its open source, but not free. To use it commercially you'll need to buy a license (at time of writing $500/server). But to get started you can get a trial license from here, or you can use the files which are in the example source code. More details about licensing are here

Source code

Full source code is here -

And the interesting bits are all in the HelloCaldavController class

Project Structure

We're going to use maven, you might want to check out the annotations hello world tutorial if you havent already for details on setting up the project.

But here's the main files you'll need to get started:


<project xmlns="" xmlns:xsi=""



                        <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">




<?xml version="1.0" encoding="UTF-8"?>

<web-app xmlns=""