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

java.lang.Object
  |
  +--org.apache.commons.jelly.TagSupport
        |
        +--org.apache.commons.jelly.tags.jms.MessageOperationTag
              |
              +--org.apache.commons.jelly.tags.jms.ReceiveTag
All Implemented Interfaces:
ConnectionContext, Tag

public class ReceiveTag
extends MessageOperationTag

Receives a JMS message.

Version:
$Revision: 1.1 $
Author:
James Strachan

Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
ReceiveTag()
           
 
Method Summary
 void doTag(XMLOutput output)
          Evaluates this tag after all the tags properties have been initialized.
 long getTimeout()
           
 java.lang.String getVar()
           
protected  void onMessage(javax.jms.Message message)
          A strategy method which processes the incoming message, allowing derived classes to implement different processing methods
 void setTimeout(long timeout)
          Sets the timeout period in milliseconds to wait for a message.
 void setVar(java.lang.String var)
          Sets the variable name to create for the received message, which will be null if no message could be returned in the given time period.
 
Methods inherited from class org.apache.commons.jelly.tags.jms.MessageOperationTag
findConnection, getConnection, getDestination, setConnection, setDestination
 
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
 

Constructor Detail

ReceiveTag

public ReceiveTag()
Method Detail

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.

getVar

public java.lang.String getVar()

setVar

public void setVar(java.lang.String var)
Sets the variable name to create for the received message, which will be null if no message could be returned in the given time period.

getTimeout

public long getTimeout()

setTimeout

public void setTimeout(long timeout)
Sets the timeout period in milliseconds to wait for a message. A value of -1 will wait forever for a message.

onMessage

protected void onMessage(javax.jms.Message message)
A strategy method which processes the incoming message, allowing derived classes to implement different processing methods


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