1 7 package org.jboss.ejb3.test.servicedependency; 8 9 import java.util.UUID ; 10 11 import org.jboss.annotation.ejb.Management; 12 import org.jboss.annotation.ejb.Service; 13 import org.jboss.logging.Logger; 14 15 21 @Service(objectName="acme:service=uniqueid") 22 @Management(UniqueIdMBean.class) 23 public class UniqueId implements UniqueIdMBean 24 { 25 private static final Logger log = Logger.getLogger(UniqueId.class); 26 27 public UUID generate() 28 { 29 return UUID.randomUUID(); 30 } 31 32 public void create() throws Exception 33 { 34 log.info("create()"); 35 36 } 37 38 public void start() throws Exception 39 { 40 log.info("start()"); 41 42 } 43 44 public void stop() throws Exception 45 { 46 log.info("stop()"); 47 48 } 49 50 public void destroy() throws Exception 51 { 52 log.info("destroy()"); 53 54 } 55 56 } 57 | Popular Tags |