Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.activemq.spring
Class SpringConsumer  view SpringConsumer download SpringConsumer.java

java.lang.Object
  extended byorg.activemq.spring.ConsumerBean
      extended byorg.activemq.spring.SpringConsumer
All Implemented Interfaces:
javax.jms.MessageListener, org.activemq.service.Service

public class SpringConsumer
extends ConsumerBean
implements org.activemq.service.Service, javax.jms.MessageListener

Version:
$Revision$

Field Summary
private  javax.jms.Connection connection
           
private  javax.jms.MessageConsumer consumer
           
private  javax.jms.Destination destination
           
private static org.apache.commons.logging.Log log
           
private  java.lang.String myId
           
private  javax.jms.Session session
           
private  org.springframework.jms.core.JmsTemplate template
           
 
Fields inherited from class org.activemq.spring.ConsumerBean
 
Constructor Summary
SpringConsumer()
           
 
Method Summary
 javax.jms.Destination getDestination()
           
 java.lang.String getMyId()
           
 org.springframework.jms.core.JmsTemplate getTemplate()
           
 void onMessage(javax.jms.Message message)
           
 void setDestination(javax.jms.Destination destination)
           
 void setMyId(java.lang.String myId)
           
 void setTemplate(org.springframework.jms.core.JmsTemplate template)
           
 void start()
          Called to start the service
 void stop()
          Called to shutdown the service
 
Methods inherited from class org.activemq.spring.ConsumerBean
flushMessages, hasReceivedMessage, hasReceivedMessages, waitForMessagesToArrive, waitForMessageToArrive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.apache.commons.logging.Log log

template

private org.springframework.jms.core.JmsTemplate template

myId

private java.lang.String myId

destination

private javax.jms.Destination destination

connection

private javax.jms.Connection connection

session

private javax.jms.Session session

consumer

private javax.jms.MessageConsumer consumer
Constructor Detail

SpringConsumer

public SpringConsumer()
Method Detail

start

public void start()
           throws javax.jms.JMSException
Description copied from interface: org.activemq.service.Service
Called to start the service

Specified by:
start in interface org.activemq.service.Service

stop

public void stop()
          throws javax.jms.JMSException
Description copied from interface: org.activemq.service.Service
Called to shutdown the service

Specified by:
stop in interface org.activemq.service.Service

onMessage

public void onMessage(javax.jms.Message message)
Specified by:
onMessage in interface javax.jms.MessageListener
Overrides:
onMessage in class ConsumerBean

getDestination

public javax.jms.Destination getDestination()

setDestination

public void setDestination(javax.jms.Destination destination)

getMyId

public java.lang.String getMyId()

setMyId

public void setMyId(java.lang.String myId)

getTemplate

public org.springframework.jms.core.JmsTemplate getTemplate()

setTemplate

public void setTemplate(org.springframework.jms.core.JmsTemplate template)