1 22 package org.jboss.tutorial.ejb21_client_adaptors.bean; 23 24 import javax.ejb.Stateful ; 25 import javax.ejb.Local ; 26 import javax.ejb.Init ; 27 import javax.ejb.LocalHome ; 28 29 import org.jboss.annotation.ejb.LocalBinding; 30 import org.jboss.logging.Logger; 31 32 36 @Stateful (name="Session2") 37 @Local (Session2Local.class) 38 @LocalHome (Session2LocalHome.class) 39 @LocalBinding(jndiBinding = "Session2Local") 40 public class Session2Bean 41 { 42 private static final Logger log = Logger.getLogger(Session2Bean.class); 43 44 private String initValue = null; 45 46 public String getInitValue() 47 { 48 return initValue; 49 } 50 51 @Init 52 public void ejbCreate(String initValue) 53 { 54 this.initValue = initValue; 55 } 56 57 } 58 | Popular Tags |