1 25 package org.objectweb.wssample.servlets.ws; 26 27 import org.objectweb.jonas.common.Log; 28 29 import org.objectweb.util.monolog.api.BasicLevel; 30 import org.objectweb.util.monolog.api.Logger; 31 32 48 public class JaxRpcEndpoint { 49 50 53 private static final int GET_COTES_VALUE = 12; 54 55 58 private static Logger logger = Log.getLogger(Log.JONAS_WS_PREFIX); 59 60 63 public JaxRpcEndpoint() { 64 } 65 66 70 public String sayHello(String name) { 71 logger.log(BasicLevel.INFO, "sayHello(" + name + ") invoked."); 72 return "Hello " + name; 73 } 74 75 78 public int getCotes() { 79 logger.log(BasicLevel.INFO, "getCotes() invoked."); 80 return GET_COTES_VALUE; 81 } 82 83 } | Popular Tags |