1 22 package org.jboss.ejb3.test.initial; 23 24 import java.util.Map ; 25 import java.util.HashMap ; 26 import javax.ejb.Remove ; 27 import javax.ejb.Stateful ; 28 import javax.ejb.Remote ; 29 import javax.ejb.Local ; 30 31 37 @Stateful 38 @Remote (StatefulTestRemote.class) 39 @Local (StatefulTestLocal.class) 40 public class StatefulTestBean implements StatefulTestRemote, StatefulTestLocal, java.io.Serializable 41 { 42 private String state; 43 44 public void setState(String state) 45 { 46 this.state = state; 47 } 48 49 public String getState() 50 { 51 System.out.println("**JDK15 getstate"); 52 return state; 53 } 54 55 @Remove 56 public void endSession() 57 { 58 } 59 60 61 public static Map obj = new HashMap (); 62 63 public Map getObject() 64 { 65 return obj; 66 } 67 68 public Object echo(Object e) 69 { 70 return e; 71 } 72 } 73 | Popular Tags |