1 22 package org.jboss.test.idgen.ejb; 23 24 import java.io.ObjectStreamException ; 25 import java.rmi.RemoteException ; 26 import javax.ejb.CreateException ; 27 28 34 public class IdCounterBeanCMP 35 extends IdCounterBean 36 { 37 public String name; 38 public long currentValue; 39 40 public long getCurrentValue() 41 { 42 return currentValue; 43 } 44 45 public void setCurrentValue(long current) 46 { 47 this.currentValue = current; 48 } 49 50 public String getName() 51 { 52 return name; 53 } 54 55 public void setName(String beanName) 56 { 57 this.name = beanName; 58 } 59 60 public String ejbCreate(String name) 61 throws RemoteException , CreateException 62 { 63 setName(name); 64 currentValue = 0; 65 66 return null; 67 } 68 69 public void ejbPostCreate(String name) 70 throws RemoteException , CreateException 71 { 72 } 73 } 74 | Popular Tags |