1 22 package org.jboss.tutorial.service_deployment_descriptor.bean; 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 @Depends("jboss.j2ee:jar=tutorial.jar,name=ServiceOne,service=EJB3") 33 public class ServiceTwo implements ServiceTwoManagement 34 { 35 public String sayHello() 36 { 37 return "Hello from service Two"; 38 } 39 40 public void start() throws Exception  42 { 43 System.out.println("ServiceTwo - Starting"); 44 } 45 46 public void stop() 47 { 48 System.out.println("ServiceTwo - Stopping"); 49 } 50 } 51 | Popular Tags |