package de.asw.courses.web2016.demo.backend.weblistener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

import org.jboss.logging.Logger;

@WebListener
public class WebListenerExample implements ServletContextListener {

	Logger log = Logger.getLogger(WebListenerExample.class);

	@Override
	public void contextInitialized(ServletContextEvent sce) {
		log.info("Context Initalized");
	}

	@Override
	public void contextDestroyed(ServletContextEvent sce) {
		log.info("Context Destroyed");
	}
}

@@ -459,17 +459,62 @@
 italized
-%22
+: %22 + sce.getServletContext().getContextPath()
 );%0A%09%7D%0A%0A%09
@@ -613,13 +613,57 @@
 oyed
-%22
+: %22 + sce.getServletContext().getContextPath()
 );%0A%09%7D%0A%7D
-%0A

Add contextPath to message in WebListenerExample