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 --- solutions/hello-rest/src/main/java/com/redhat/training/rest/PersonService.java | 7 ------- 1 files changed, 0 insertions(+), 7 deletions(-) diff --git a/solutions/hello-rest/src/main/java/com/redhat/training/rest/PersonService.java b/solutions/hello-rest/src/main/java/com/redhat/training/rest/PersonService.java index 9a76af5..efa4a32 100644 --- a/solutions/hello-rest/src/main/java/com/redhat/training/rest/PersonService.java +++ b/solutions/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; @Stateless @@ -40,9 +39,6 @@ @Resource UserTransaction tx; - - @Inject - JMSUtil jmsUtil; // Simple non-RESTy method for JSF bean invocation public String hello(String name) { @@ -62,9 +58,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