org.apache.commons.jelly.tags.jms
Class TextMessageTag

java.lang.Object
  |
  +--org.apache.commons.jelly.TagSupport
        |
        +--org.apache.commons.jelly.tags.jms.MessageTag
              |
              +--org.apache.commons.jelly.tags.jms.TextMessageTag
All Implemented Interfaces:
Tag

public class TextMessageTag
extends MessageTag

Creates a JMS TextMessage

Version:
$Revision: 1.1 $
Author:
James Strachan

Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
TextMessageTag()
           
 
Method Summary
protected  javax.jms.Message createMessage()
           
 void setText(java.lang.String text)
          Sets the body of the message, a String.
 
Methods inherited from class org.apache.commons.jelly.tags.jms.MessageTag
addProperty, doTag, findConnection, getConnection, getMessage, setConnection, setCorrelationID, setReplyTo, setType, setVar
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getContext, getParent, invokeBody, isTrim, setBody, setContext, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextMessageTag

public TextMessageTag()
Method Detail

setText

public void setText(java.lang.String text)
Sets the body of the message, a String. If this value is not set or the value is null then the content of the tag will be used instead.

createMessage

protected javax.jms.Message createMessage()
                                   throws java.lang.Exception
Overrides:
createMessage in class MessageTag


Copyright © 2002-2002 Apache Software Foundation. All Rights Reserved.