From a37070c239d87ec5f0b0a0544351a57ed06f489b Mon Sep 17 00:00:00 2001 From: Ravi Srinivasan <rsriniva@redhat.com> Date: Fri, 14 Sep 2018 06:31:06 +0200 Subject: [PATCH] Fixes for Chap 6 on REST --- labs/hello-rest/src/main/java/com/redhat/training/rest/PersonService.java | 7 ------- 1 files changed, 0 insertions(+), 7 deletions(-) diff --git a/labs/hello-rest/src/main/java/com/redhat/training/rest/PersonService.java b/labs/hello-rest/src/main/java/com/redhat/training/rest/PersonService.java index 0c309c3..0e26941 100644 --- a/labs/hello-rest/src/main/java/com/redhat/training/rest/PersonService.java +++ b/labs/hello-rest/src/main/java/com/redhat/training/rest/PersonService.java @@ -25,7 +25,6 @@ import javax.ws.rs.core.Response; import javax.ws.rs.core.Response.ResponseBuilder; -import com.redhat.training.messaging.JMSUtil; import com.redhat.training.model.Person; //TODO Add the stateless annotation @@ -45,9 +44,6 @@ @Resource UserTransaction tx; - @Inject - JMSUtil jmsUtil; - // Simple non-RESTy method for JSF bean invocation public String hello(String name) { try { @@ -66,9 +62,6 @@ Person p = new Person(); p.setName(name); entityManager.persist(p); - - // Send a JMS message to the 'helloWorldQueue' - jmsUtil.sendMessage("Said Hello to " + name.toUpperCase() + " at " + fdate); // respond back with Hello and convert the name to UPPERCASE. Also, send the // current time on the server. -- Gitblit v1.9.3