1 10 11 package org.mule.providers.oracle.jms.transformers; 12 13 import javax.jms.Session ; 14 15 import oracle.jms.AdtMessage; 16 import oracle.xdb.XMLType; 17 18 import org.mule.config.i18n.Message; 19 import org.mule.providers.oracle.jms.OracleJmsConnector; 20 import org.mule.transformers.AbstractEventAwareTransformer; 21 import org.mule.umo.UMOEventContext; 22 import org.mule.umo.transformer.TransformerException; 23 24 34 public class StringToXMLMessage extends AbstractEventAwareTransformer 35 { 36 37 private static final long serialVersionUID = 8476470235704172556L; 38 39 public StringToXMLMessage() 40 { 41 super(); 42 registerSourceType(String .class); 43 registerSourceType(byte[].class); 44 setReturnClass(AdtMessage.class); 45 } 46 47 51 public Object transform(Object src, String encoding, UMOEventContext context) throws TransformerException 52 { 53 Session session = null; 54 AdtMessage message = null; 55 XMLType xmltype = null; 56 57 throw new TransformerException( 58 Message.createStaticMessage("This transformer is currently unsupported until issue MULE-1079 is resolved."), 59 this); 60 93 } 94 } 95 | Popular Tags |