1 25 package org.objectweb.wssample.beans.ws; 26 27 import javax.ejb.CreateException ; 28 import javax.ejb.SessionBean ; 29 import javax.ejb.SessionContext ; 30 31 import org.objectweb.jonas.common.Log; 32 import org.objectweb.util.monolog.api.Logger; 33 import org.objectweb.util.monolog.api.BasicLevel; 34 35 38 public class WSBeanEndpointSLL implements SessionBean { 39 40 43 private static Logger logger = null; 44 45 48 private SessionContext ejbContext; 49 50 54 58 public void setSessionContext(SessionContext ctx) { 59 if (logger == null) { 60 logger = Log.getLogger("org.objectweb.jonas_tests"); 61 } 62 logger.log(BasicLevel.DEBUG, ""); 63 ejbContext = ctx; 64 } 65 66 69 public void ejbRemove() { 70 logger.log(BasicLevel.DEBUG, ""); 71 } 72 73 77 public void ejbCreate() throws CreateException { 78 logger.log(BasicLevel.DEBUG, ""); 79 } 80 81 84 public void ejbPassivate() { 85 logger.log(BasicLevel.DEBUG, ""); 86 } 87 88 91 public void ejbActivate() { 92 logger.log(BasicLevel.DEBUG, ""); 93 } 94 95 99 103 public String sayHello(String name) { 104 logger.log(BasicLevel.INFO, "sayHello(" + name + ") invokation."); 105 return "Hello " + name; 106 } 107 108 111 public int getCotes() { 112 logger.log(BasicLevel.INFO, "getCotes invokation"); 113 return 12; 114 } 115 } 116 117 | Popular Tags |