Using this : -
Using resource environment providers in WebSphere Application Server
and this: -
Resource Environment Provider in EJB-jar xml
as inspiration, I'd written a very basic servlet, that reads from a Resource Environment Entry, setup using a Resource Environment Provider, ably provided by a Java class.
When I attempted to use my servlet ( the Resource Environment Entry is retrieved during the doGet() method, I saw this in the logs: -
[06/12/18 18:05:46:969 GMT] 00000098 annotation W com.ibm.ws.webcontainer.annotation.WASAnnotationHelper inject(mo) SRVE8042E: An internal error caused the reference context that enables injection to not be initialized properly.