org.apache.activemq.tool
Class MemProducer

java.lang.Object
  extended by org.apache.activemq.tool.MemProducer

public class MemProducer
extends Object


Field Summary
protected  Connection connection
           
protected  MessageProducer producer
           
 
Constructor Summary
MemProducer(ConnectionFactory fac, Destination dest)
           
 
Method Summary
 void sendMessage(Message msg)
           
 void sendMessage(Message msg, String headerName, long headerValue)
           
 void setDeliveryMode(int mode)
           
 void shutDown()
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connection

protected Connection connection

producer

protected MessageProducer producer
Constructor Detail

MemProducer

public MemProducer(ConnectionFactory fac,
                   Destination dest)
            throws JMSException
Throws:
JMSException
Method Detail

setDeliveryMode

public void setDeliveryMode(int mode)
                     throws JMSException
Throws:
JMSException

start

public void start()
           throws JMSException
Throws:
JMSException

stop

public void stop()
          throws JMSException
Throws:
JMSException

shutDown

public void shutDown()
              throws JMSException
Throws:
JMSException

sendMessage

public void sendMessage(Message msg)
                 throws JMSException
Throws:
JMSException

sendMessage

public void sendMessage(Message msg,
                        String headerName,
                        long headerValue)
                 throws JMSException
Throws:
JMSException


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.