The java ee 6 api has an annotation @Resource with an attribute ‘lookup’, however, so does the java se 6 api (here). However, since java ee 6 is dependent on java se 6, it seems you can not get at the ee version of the annotation and the ‘lookup’ attribute.
Is this a bug or is there some other way to use this annotation that I am missing.
TIA
Your JDK (and mine) doesn’t have the latest version of the
javax.annotation.Resourcefrom the JSR-250. To use the latest version during compilation, you’ll have to override the compiler’s endorsed directory (e.g. to point to your glassfishv3 endorsed directory):