Hi Jokoul,
I suppose you mean another jEmbedded container apart from the one that
is creating the class MyTest?
If that's what you mean, you can do that using the @Repository
annotation as it creates another container (well almost).
@Repository(id="container", resources={ServiceFromJembedded.class},...
managedElements={bServiceFromJembedded})
public class Container{
}
@SpringRepository(...)
@Repository(....iocProviders = {"springRepository"})
@Include(resources=Container.class)
public class MyTest{
@Inject(ref = "bServiceFromJembedded")
private Object....
}
Also you can create a hierarchy:
@SpringRepository(...)
@Repository(....iocProviders = {"springRepository"},
parent="container")
public class MyTest{
@Inject(ref = "bServiceFromJembedded")
private Object....
}
Hope this helps.
Adolfo