package org.wso2.bps.samples.eventlistener; import org.apache.ode.bpel.iapi.BpelEventListener; import org.apache.ode.bpel.evt.BpelEvent; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import java.util.Properties; /** * Created by IntelliJ IDEA. * User: waruna * Date: Oct 19, 2009 * Time: 11:21:53 AM * To change this template use File | Settings | File Templates. */ public class CustomEventListener implements BpelEventListener { protected final Log log = LogFactory.getLog(getClass()); public void onEvent(BpelEvent bpelEvent) { System.out.println("Event Notification: " + bpelEvent.getType().toString() + ", " + bpelEvent.getTimestamp()+ ", " + bpelEvent.toString()); } public void startup(Properties properties) { log.info("Custom Event Listner:"+ CustomEventListener.class +" startup!"); //System.out.println("Custom Event Listner:"+ CustomEventListener.class +" startup!"); } public void shutdown() { log.info("Custom Event Listner:"+ CustomEventListener.class +" shutdown!"); //System.out.println("Custom Event Listner:"+ CustomEventListener.class +" shutdown!"); } }