Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Injection in CDI and inheritance.

 
Bono Vox
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I don't understand one thing.

I have two classes A and B.



Why when I inject in another class :



I become cdi ambiguous dependencies exception.

When I change



to



than no exception in deployment is thrown.


What should I do to inject A type.

Please help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic