Příklad

public class BeanClass implements javax.ejb.SessionBean {
public String ejbCreate () {
//instanciace objektu bean

return "example primary key";
}

//další metody, které musí implementovat rozhraní
}

Řešení
Deklarujte návratový typ void pro metodu ejbCreate()


public class BeanClass implements javax.ejb.SessionBean {
public void ejbCreate () {
//instanciace objektu bean
}

//další metody, které musí implementovat rozhraní
}