01: package demo.jms_greeter.server;
02:
03: import java.util.logging.Logger;
04: import org.objectweb.celtix.jms_greeter.JMSGreeterPortType;
05:
06: @javax.jws.WebService(name="JMSGreeterPortType",serviceName="JMSGreeterService",targetNamespace="http://celtix.objectweb.org/jms_greeter",wsdlLocation="file:./wsdl/jms_greeter.wsdl")
07: public class GreeterJMSImpl implements JMSGreeterPortType {
08:
09: private static final Logger LOG = Logger
10: .getLogger(GreeterJMSImpl.class.getPackage().getName());
11:
12: public String greetMe(String me) {
13: LOG.info("Executing operation greetMe");
14: System.out.println("Executing operation greetMe");
15: System.out.println("Message received: " + me + "\n");
16: return "Hello " + me;
17: }
18:
19: public String sayHi() {
20: LOG.info("Executing operation sayHi");
21: System.out.println("Executing operation sayHi" + "\n");
22: return "Bonjour";
23: }
24:
25: public void greetMeOneWay(String me) {
26: LOG.info("Executing operation greetMeOneWay");
27: System.out.println("Executing operation greetMeOneWay\n");
28: System.out.println("Hello there " + me);
29: }
30: }
|