The process is basically (1) Connect to Exchange Server (2) Subscribe to notifications (3) Setup a listener to receive notifications. (1) and (2) I have done and are largely handled by the library - step 3 is a little harder. I have copied the code here :
Obviously you need to make sure your callback address is reachable by the server - I am all ok up to this point, but then I need to create a servlet, which in Eclipse I am doing through 'Dynamic Web Project':
I am using Apache and Jersey, and I know this is working because I can browse to localhost:8080/com.vogella.jersey.first/rest/emailnotification/abc123 and my browser outputs "Jersey say: abc123"
But I have a few questions:
1. Where is the logger.debug output sent? Its not appearing in the console.
2. How is this all put together, namely how is the listener called after the events are subscribed to?