It's possible to inject stateless session bean into jsf managed bean?
I have
@ManagedBean(name = "imageUpload")
@RequestScoped
public class ImageUploadBean extends FileUploadBean {
@EJB
GenericEntityService genericEntityService;
...
}
public interface GenericEntityService {
<T> T getById(int id, Class<T> entityClass);
void deleteById(int id, Class entityClass);
}
@Stateless
public class GenericEntityServiceImpl
extends EntityServiceBase implements GenericEntityService
{
...
}
genericEntityService is always null, i have no idea why
i use tomee-webprofile-1.5.2
any help or link to example would be appreciated