Hey guys, i'm using sun aplicattion server witch comes in J2SDKEE. I developed a simple entity bean for the Cloudscape DataBase and i'm having this problem when runnig the Verifier tool of the deploytool.
"Error: Transaction attributes must be specified for the methods defined in the home interface [ br.com.aleks.catalogo.pessoa.PessoaHome ]. Method [ create ] has no transaction attribute defined within this bean [ PessoaBean ]."
Here is my home interface:
package br.com.aleks.catalogo.pessoa;
import javax.ejb.EJBHome;
import javax.ejb.CreateException;
import javax.ejb.FinderException;
import java.rmi.RemoteException;
public interface PessoaHome extends EJBHome
{
public PessoaRemote create(Integer id)
throws CreateException, RemoteException;
public PessoaRemote findByPrimaryKey(Integer pk)
throws FinderException, RemoteException;
}
Here is the bean:
package br.com.aleks.catalogo.pessoa;
import javax.ejb.EntityBean;
import javax.ejb.CreateException;
import javax.ejb.EntityContext;
public abstract class PessoaBean implements EntityBean
{
public Integer ejbCreate(Integer id) throws CreateException
{
this.setId(id);
return null;
}
public void ejbPostCreate(Integer id) throws CreateException
{
}
public abstract void setId(Integer id);
public abstract Integer getId();
public abstract void setNome(
String nome);
public abstract String getNome();
public void setEntityContext(EntityContext ctx) {
// Not implemented.
}
public void unsetEntityContext() {
// Not implemented.
}
public void ejbActivate() {
// Not implemented.
}
public void ejbPassivate() {
// Not implemented.
}
public void ejbLoad() {
// Not implemented.
}
public void ejbStore() {
// Not implemented.
}
public void ejbRemove() {
// Not implemented.
}
}