From 00f70ea970dc5863b62ad257308b9344933c71b0 Mon Sep 17 00:00:00 2001 From: Jan Vales Date: Sun, 5 May 2013 21:41:41 +0200 Subject: [PATCH] Cook should now correctly produce pizzas. --- .../cook/jms/messageListeners/CookRequestedPizza.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/at/ac/tuwien/sbc/valesriegler/cook/jms/messageListeners/CookRequestedPizza.java b/src/main/java/at/ac/tuwien/sbc/valesriegler/cook/jms/messageListeners/CookRequestedPizza.java index a0e691b..dfd6baf 100644 --- a/src/main/java/at/ac/tuwien/sbc/valesriegler/cook/jms/messageListeners/CookRequestedPizza.java +++ b/src/main/java/at/ac/tuwien/sbc/valesriegler/cook/jms/messageListeners/CookRequestedPizza.java @@ -16,7 +16,6 @@ import org.slf4j.LoggerFactory; import at.ac.tuwien.sbc.valesriegler.cook.JMSCook; import at.ac.tuwien.sbc.valesriegler.types.Pizza; import at.ac.tuwien.sbc.valesriegler.types.PizzaOrder; -import at.ac.tuwien.sbc.valesriegler.types.PizzaType; public class CookRequestedPizza implements MessageListener { private static final Logger log = LoggerFactory.getLogger(CookRequestedPizza.class); @@ -34,7 +33,7 @@ public class CookRequestedPizza implements MessageListener { ObjectMessage objMsg = (ObjectMessage) msg; Object obj = objMsg.getObject(); - if (obj instanceof PizzaType) { + if (obj instanceof PizzaOrder) { PizzaOrder pizzaorder = (PizzaOrder) obj; log.debug("Received: " + pizzaorder); -- 2.43.0