package org.jboss.test.idgen.ejb;
import java.io.ObjectStreamException;
import java.rmi.RemoteException;
import javax.ejb.CreateException;
public class IdCounterBeanCMP
extends IdCounterBean
{
public String name;
public long currentValue;
public long getCurrentValue()
{
return currentValue;
}
public void setCurrentValue(long current)
{
this.currentValue = current;
}
public String getName()
{
return name;
}
public void setName(String beanName)
{
this.name = beanName;
}
public String ejbCreate(String name)
throws RemoteException, CreateException
{
setName(name);
currentValue = 0;
return null;
}
public void ejbPostCreate(String name)
throws RemoteException, CreateException
{
}
}