I have a EJB
application that has a lib jar
as a built-in dependency for code reuse. My .jar has a class that has been annotated with @RequestScoped
, and I need to retrieve it in my ejb.
I'm using the following line, does anyone know why it does not work?
MinhaClasse o = CDI.current().select(MinhaClasse .class).get();
return o.getNome();
Error Code:
Caused by: org.jboss.weld.exceptions.UnsatisfiedResolutionException: WELD-001308: Unable to resolve any beans for Type: class br.com.meuprojeto.jpa.MinhaClasse; Qualifiers: []