org.apache.activemq.tool
Class MemProducer

java.lang.Object
  extended by 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)
           
 
Method Summary
 void sendMessage(javax.jms.Message msg)
           
 void sendMessage(javax.jms.Message msg, java.lang.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 javax.jms.Connection connection

producer

protected javax.jms.MessageProducer producer
Constructor Detail

MemProducer

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

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 © 2009 Apache Software Foundation. All Rights Reserved.