1 22 package org.jboss.ejb3.test.service; 23 24 import org.jboss.annotation.ejb.Service; 25 import org.jboss.annotation.ejb.Depends; 26 import org.jboss.annotation.ejb.Management; 27 28 32 @Service 33 @Management(ServiceFourManagement.class) 34 @Depends ("jboss.ejb3:management=interface,with=customName,is=serviceThree") 35 public class ServiceFour implements ServiceFourManagement 36 { 37 public void create() throws Exception 38 { 39 System.out.println("ServiceFour - CREATE"); 40 Tester.creates.add("4"); 41 } 42 43 public void start() throws Exception 44 { 45 System.out.println("ServiceFour - START"); 46 Tester.starts.add("4"); 47 } 48 49 50 } 51 | Popular Tags |