org.activemq.tool
Class ProducerTool
java.lang.Object
org.activemq.tool.ToolSupport
org.activemq.tool.ProducerTool
- Direct Known Subclasses:
- JndiProducerTool
- public class ProducerTool
- extends ToolSupport
A simple tool for publishing messages
- Version:
- $Revision$
Fields inherited from class org.activemq.tool.ToolSupport |
ackMode, clientID, consumerName, destination, durable, pwd, subject, topic, transacted, url, user |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
messageCount
protected int messageCount
sleepTime
protected long sleepTime
verbose
protected boolean verbose
messageSize
protected int messageSize
ProducerTool
public ProducerTool()
main
public static void main(String[] args)
runTool
protected static void runTool(String[] args,
ProducerTool tool)
run
public void run()
createProducer
protected MessageProducer createProducer(Session session)
throws JMSException
- Throws:
JMSException
sendLoop
protected void sendLoop(Session session,
MessageProducer producer)
throws Exception
- Throws:
Exception
Copyright © 2004-2007 Protique, Ltd.. All Rights Reserved.