se.citerus.dddsample.infrastructure.messaging.jms
Class CargoHandledConsumer

java.lang.Object
  extended by se.citerus.dddsample.infrastructure.messaging.jms.CargoHandledConsumer
All Implemented Interfaces:
javax.jms.MessageListener

public class CargoHandledConsumer
extends java.lang.Object
implements javax.jms.MessageListener

Consumes JMS messages and delegates notification of misdirected cargo to the tracking service. This is a programmatic hook into the JMS infrastructure to make cargo inspection message-driven.


Constructor Summary
CargoHandledConsumer()
           
 
Method Summary
 void onMessage(javax.jms.Message message)
           
 void setCargoInspectionService(CargoInspectionService cargoInspectionService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CargoHandledConsumer

public CargoHandledConsumer()
Method Detail

onMessage

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

setCargoInspectionService

public void setCargoInspectionService(CargoInspectionService cargoInspectionService)


Copyright © 2009. All Rights Reserved.