Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Calling a listener: Exchange Web Services

Posts: 10
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am trying to use this library to connect Java to a Microsoft Exchange Webserver and get notified of a new email. ( )

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 :

Where he connects (1):

Then subscribes:

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?

Thanks in advance.


    Bookmark Topic Watch Topic
  • New Topic