ObjectToJMSMessage (Mule ESB 2.2.1 API)
Keywords: org.mule.transport.jms.transformers.ObjectToJMSMessage class

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.mule.transport.jms.transformers
Class ObjectToJMSMessage

    java.lang.Object
      org.mule.transformer.AbstractTransformer
          org.mule.transformer.AbstractMessageAwareTransformer
              org.mule.transport.jms.transformers.AbstractJmsTransformer
                  org.mule.transport.jms.transformers.ObjectToJMSMessage

All Implemented Interfaces:
  Initialisable, NamedObject, BaseTransformer, DiscoverableTransformer, Transformer

    public class ObjectToJMSMessage

extends AbstractJmsTransformer

`ObjectToJMSMessage` will convert any object to a `javax.jms.Message` or sub-type into an object. One of the 5 types of JMS message will be created based on the type of Object passed in.

- java.lang.String - javax.jms.TextMessage
- byte[] - javax.jms.BytesMessage
- java.util.Map - javax.jms.MapMessage
- java.io.InputStream - javax.jms.StreamMessage
- java.lang.Object - javax.jms.ObjectMessage

Note that if compression is turned on then a `javax.jms.BytesMessage` is sent.

Field Summary

Fields inherited from class org.mule.transformer.AbstractTransformer
`DEFAULT_TRUNCATE_LENGTH, endpoint, logger, name, returnClass, sourceTypes`

Fields inherited from interface org.mule.api.transformer.DiscoverableTransformer
`DEFAULT_PRIORITY_WEIGHTING, MAX_PRIORITY_WEIGHTING, MIN_PRIORITY_WEIGHTING`

Fields inherited from interface org.mule.api.lifecycle.Initialisable
`PHASE_NAME`

Constructor Summary
`ObjectToJMSMessage()`

Method Summary
`Object` | `transform(MuleMessage message, String outputEncoding)`

Methods inherited from class org.mule.transport.jms.transformers.AbstractJmsTransformer
`getPriorityWeighting, getSession, setJmsProperties, setPriorityWeighting, transformFromMessage, transformToMessage`

Methods inherited from class org.mule.transformer.AbstractMessageAwareTransformer
`doTransform, isSourceTypeSupported`

Methods inherited from class org.mule.transformer.AbstractTransformer
`checkReturnClass, generateTransformerName, getEndpoint, getName, getReturnClass, getSourceTypes, initialise, isAcceptNull, isConsumed, isIgnoreBadInput, isSourceTypeSupported, registerSourceType, setEndpoint, setIgnoreBadInput, setName, setReturnClass, toString, transform, unregisterSourceType`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### ObjectToJMSMessage

    public ObjectToJMSMessage()

Method Detail

### transform

    public Object transform(MuleMessage message,
                            String outputEncoding)
                     throws TransformerException

  Specified by:
    `transform` in class `AbstractMessageAwareTransformer`
  Throws:
    `TransformerException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2009 MuleSource, Inc.. All Rights Reserved.