我希望能够在一次无国籍会议上这样做。
@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 ?
增 编
Peter