The example code implements the onEvent() method required by the SessionEventConsumer class to handle any incoming messages that the client application has registered for. This method will be called for each event notification that the client application receives at the point in time where the transaction is committed in the EJB Container in the J2EE application server.