org.apache.commons.jelly.tags.jms
Class MessageTag
java.lang.Object
|
+--org.apache.commons.jelly.TagSupport
|
+--org.apache.commons.jelly.tags.jms.MessageTag
- All Implemented Interfaces:
- Tag
- Direct Known Subclasses:
- MapMessageTag, ObjectMessageTag, TextMessageTag
- public class MessageTag
- extends TagSupport
A tag which creates a JMS message
- Version:
- $Revision: 1.1 $
- Author:
- James Strachan
Method Summary |
void |
addProperty(java.lang.String name,
java.lang.Object value)
Adds a JMS property to the message |
protected javax.jms.Message |
createMessage()
|
void |
doTag(XMLOutput output)
Evaluates this tag after all the tags properties have been initialized. |
protected org.apache.commons.messenger.Messenger |
findConnection()
|
org.apache.commons.messenger.Messenger |
getConnection()
|
javax.jms.Message |
getMessage()
|
void |
setConnection(org.apache.commons.messenger.Messenger connection)
Sets the Messenger (the JMS connection pool) that will be used to send the message |
void |
setCorrelationID(java.lang.String correlationID)
Sets the JMS Correlation ID to be used on the message |
void |
setReplyTo(javax.jms.Destination destination)
Sets the reply-to destination to add to the message |
void |
setType(java.lang.String type)
Sets the type name of the message |
void |
setVar(java.lang.String var)
Sets the name of the variable that the message will be exported to |
Methods inherited from class org.apache.commons.jelly.TagSupport |
findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, 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 |
MessageTag
public MessageTag()
addProperty
public void addProperty(java.lang.String name,
java.lang.Object value)
throws java.lang.Exception
- Adds a JMS property to the message
doTag
public void doTag(XMLOutput output)
throws java.lang.Exception
- Description copied from interface:
Tag
- Evaluates this tag after all the tags properties have been initialized.
setVar
public void setVar(java.lang.String var)
- Sets the name of the variable that the message will be exported to
getConnection
public org.apache.commons.messenger.Messenger getConnection()
throws java.lang.Exception
setConnection
public void setConnection(org.apache.commons.messenger.Messenger connection)
- Sets the Messenger (the JMS connection pool) that will be used to send the message
getMessage
public javax.jms.Message getMessage()
throws java.lang.Exception
setCorrelationID
public void setCorrelationID(java.lang.String correlationID)
throws java.lang.Exception
- Sets the JMS Correlation ID to be used on the message
setReplyTo
public void setReplyTo(javax.jms.Destination destination)
throws java.lang.Exception
- Sets the reply-to destination to add to the message
setType
public void setType(java.lang.String type)
throws java.lang.Exception
- Sets the type name of the message
findConnection
protected org.apache.commons.messenger.Messenger findConnection()
throws java.lang.Exception
createMessage
protected javax.jms.Message createMessage()
throws java.lang.Exception
Copyright © 2002-2002 Apache Software Foundation. All Rights Reserved.