org.exolab.jmscts.core
Class SequencePropertyPopulator
java.lang.Object
|
+--org.exolab.jmscts.core.SequencePropertyPopulator
- All Implemented Interfaces:
- MessagePopulator, java.io.Serializable
- public class SequencePropertyPopulator
- extends java.lang.Object
- implements MessagePopulator
A message populator that populates the 'JMSXGroupID' and 'JMSXGroupSeq'
properties of a message. The sequence is incremented with each invocation,
starting at 1.
- Version:
- $Revision: 1.2 $ $Date: 2004/01/31 13:44:24 $
- Author:
- Tim Anderson
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
GROUP_ID
The JMSX group identifier property name |
static java.lang.String |
GROUP_SEQ
The JMSX sequence number property name |
Constructor Summary |
SequencePropertyPopulator()
Create an instance of this class, with the default group name to
populate the JMSXGroupID property with |
SequencePropertyPopulator(java.lang.String group)
Create an instance of this class, with the group name to populate the
JMSXGroupID property with |
Method Summary |
void |
populate(javax.jms.Message message)
Populate the JMSXGroupID and JMSXGroupSeq property of a message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GROUP_ID
public static final java.lang.String GROUP_ID
- The JMSX group identifier property name
GROUP_SEQ
public static final java.lang.String GROUP_SEQ
- The JMSX sequence number property name
SequencePropertyPopulator
public SequencePropertyPopulator()
- Create an instance of this class, with the default group name to
populate the JMSXGroupID property with
SequencePropertyPopulator
public SequencePropertyPopulator(java.lang.String group)
- Create an instance of this class, with the group name to populate the
JMSXGroupID property with
- Parameters:
group
- the value to populate the JMSXGroupID property with
populate
public void populate(javax.jms.Message message)
throws java.lang.Exception
- Populate the JMSXGroupID and JMSXGroupSeq property of a message.
The sequence is incremented with each invocation.
- Specified by:
populate
in interface MessagePopulator
- Parameters:
message
- the message to populate- Throws:
java.lang.Exception
- for any error
Copyright © 2001-2004 JMS CTS Team. All Rights Reserved.