Hello, I want to be able to do something like this in a stateless Session Bean
@Resource(name="mycustomthingie") private CustomClass stuff;
The value injected is context (speak: Thread) dependant. I guess this would be possible if I bind an ObjectFactory into the JNDI Context that delivers the correct Object when requested.
As I understand it for this to work I would have to add the resource to the "java:comp" JNDI context, but this is appearantly not allowed by the EE5 specification. Is there a subcontext in which I am allowed to write or is there another way to get something similar to work ?
Thanks
Peter