1 10 11 package org.mule.providers.jms.transformers; 12 13 import org.mule.umo.transformer.TransformerException; 14 15 29 30 public class ObjectToJMSMessage extends AbstractJmsTransformer 31 { 32 35 private static final long serialVersionUID = 6900208781863624801L; 36 37 public Object doTransform(Object src, String encoding) throws TransformerException 38 { 39 try 40 { 41 if (logger.isDebugEnabled()) 42 { 43 logger.debug("Source object is " + src.getClass().getName()); 44 } 45 46 Object result = transformToMessage(src); 47 48 if (logger.isDebugEnabled()) 49 { 50 logger.debug("Resulting object is " + result.getClass().getName()); 51 } 52 53 return result; 54 } 55 catch (Exception e) 56 { 57 throw new TransformerException(this, e); 58 } 59 } 60 61 } 62 | Popular Tags |