001 package biz.hammurapi.jms.adapter; 002 003 /** 004 * Processes object created from Message. 005 * @author Pavel 006 */ 007 public interface Processor { 008 009 /** 010 * Processes object 011 * @param obj 012 * @return Processing result. This result is 013 * sent as a reply from listener. 014 * @throws Exception If exception is thrown it is also 015 * serialized and sent as error reply. 016 */ 017 Object process(Object obj) throws Exception; 018 }