How can I find what "Resources" a Java EE container provides? Can I discover this programmatically, or is there documentation I should refer to? (Note that the Java EE tutorial is vague on this subject.)
Here is an example of what I'm talking about:
I was reading the Java EE 6 documentation for Using the Timer Service, and I noticed that it doesn't really explain what the TimerService technically is. If you read the documentation, you eventually see an example that a TimerService is obtainable using the
@Resource
annotation.From this I take it that a TimerService is a Resource provided by the container. If it weren't for the example, I never would have realized this without reading a third-party blog post: at no point does the official tutorial say that "TimerService is a container-provided Resource". TimerService is very useful, so I would like to know what other Resources are available.
To be clear, I'm not looking for a third-party blog post, and the official Java EE tutorial is just that, a tutorial: it's not comprehensive. And I briefly checked the Java EE 7 Platform JSR, but I couldn't find a reference to TimerService.
Is there a way to programmatically find the Resources a container provides, or is there a documented list of Resources a Java EE container must provide?