I am still trying to figure out how to use Pax-CDI with JSF in Pax-Web.

*When I inject a OSGi-Service in a CDI-Bean I get a IllegalStateException*

java.lang.IllegalArgumentException: Beans with @Service, @Component or 
@Config injection points should be annotated with @Component

@RequestScoped
@Named("loginController")
public class LoginController {

  private String username;
  private String password;
  
  @Inject 
  @Service
  private LoginService loginService;

How would I inject an OSGi-Service in a scoped bean? I think that was 
possible with version 0.13.0 by using 

@Inject @OsgiService
private LoginService loginService;


Should I file a bug or am I missing something?

regards
Marc

-- 
-- 
------------------
OPS4J - http://www.ops4j.org - [email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to