org.apache.activemq.tool
Class MemProducer
java.lang.Object
org.apache.activemq.tool.MemProducer
public class MemProducer
- extends java.lang.Object
- Version:
- $Revision: 1.3 $
Field Summary |
protected javax.jms.Connection |
connection
|
protected javax.jms.MessageProducer |
producer
|
Constructor Summary |
MemProducer(javax.jms.ConnectionFactory fac,
javax.jms.Destination dest)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
connection
protected javax.jms.Connection connection
producer
protected javax.jms.MessageProducer producer
MemProducer
public MemProducer(javax.jms.ConnectionFactory fac,
javax.jms.Destination dest)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
setDeliveryMode
public void setDeliveryMode(int mode)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
start
public void start()
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
stop
public void stop()
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
shutDown
public void shutDown()
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
sendMessage
public void sendMessage(javax.jms.Message msg)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
sendMessage
public void sendMessage(javax.jms.Message msg,
java.lang.String headerName,
long headerValue)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
Copyright © 2010 Apache Software Foundation. All Rights Reserved.