...
The Code
Annotated Bean Class
...
The use of the @Resource annotation isn't limited to setters. For example, this annotation could have been used on the corresponding field like so:
...
...
ejb-jar.xml
...
Test Case
...
Running it
Running the example is fairly simple. In the "injection-of-env-entry" directory of the examples zip, just run:
...