I'm running into a issue with CDI Injection into a Weld container in JBoss 7.1.1
I've got the following object model :
@Stateless
class ServiceEjb {
@Inject
A a;
}
class A {
@Inject
B b;
}
class B {
@Inject
A a;
}
When trying to inject A or B in my stateless class, injection loop and crash with a javax.enterprise.inject.CreationException.
I try many thing (scoping, @Singleton on A or B but without success). I don't want to break the code, and those injections makes senses.
Any clues will be greatly appreciated.