Ravi Srinivasan
2018-09-14 a37070c239d87ec5f0b0a0544351a57ed06f489b
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.