org.fusesource.rider.sample.camelamqweb
Class SampleProducerAndConsumer

java.lang.Object
  extended by org.fusesource.rider.sample.camelamqweb.SampleProducerAndConsumer

public class SampleProducerAndConsumer
extends java.lang.Object

A sample JMS client that creates a producer & consumer


Constructor Summary
SampleProducerAndConsumer(javax.jms.ConnectionFactory connectionFactory)
           
 
Method Summary
 javax.jms.Destination getDestination()
           
 javax.jms.MessageListener getMessageListener()
           
 java.lang.String getQueueName()
           
 boolean isDynamicDestination()
           
 void setDestination(javax.jms.Destination destination)
           
 void setDynamicDestination(boolean dynamicDestination)
           
 void setMessageListener(javax.jms.MessageListener messageListener)
           
 void setQueueName(java.lang.String queueName)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleProducerAndConsumer

public SampleProducerAndConsumer(javax.jms.ConnectionFactory connectionFactory)
Method Detail

start

@PostConstruct
public void start()
           throws java.lang.Exception
Throws:
java.lang.Exception

stop

@PreDestroy
public void stop()
          throws java.lang.Exception
Throws:
java.lang.Exception

getQueueName

public java.lang.String getQueueName()

setQueueName

public void setQueueName(java.lang.String queueName)

getDestination

public javax.jms.Destination getDestination()

setDestination

public void setDestination(javax.jms.Destination destination)

getMessageListener

public javax.jms.MessageListener getMessageListener()

setMessageListener

public void setMessageListener(javax.jms.MessageListener messageListener)

isDynamicDestination

public boolean isDynamicDestination()

setDynamicDestination

public void setDynamicDestination(boolean dynamicDestination)


Copyright © 2012 FuseSource. All Rights Reserved.