Skip to Content
RESTful Java Web Services, Second Edition
book

RESTful Java Web Services, Second Edition

by Jobinesh Purushothaman
September 2015
Intermediate to advanced
354 pages
8h 27m
English
Packt Publishing
Content preview from RESTful Java Web Services, Second Edition

Monitoring RESTful web services using Jersey APIs

Jersey lets you register various event listeners to monitor the state of your JAX-RS application. Here are the two core listener interfaces that you may need to be aware of:

  • org.glassfish.jersey.server.monitoring.ApplicationEventListener: This is a Jersey-specific provider component that listens to application events such as initialization of application, start and stop of application, and so on. The implementation class can be registered as any standard JAX-RS provider.
  • org.glassfish.jersey.server.monitoring.RequestEventListener: The implementation of the interface will be called for request events when they occur. This is not a JAX-RS provider; an instance of RequestEventListener must be returned ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

RESTful Java Web Services - Third Edition

RESTful Java Web Services - Third Edition

Balachandar Bogunuva Mohanram
RESTful Web Services

RESTful Web Services

Leonard Richardson, Sam Ruby

Publisher Resources

ISBN: 9781784399092Supplemental Content