I am trying to use @Resource(lookup="")
to look up a resource configured in Glassfish 3.1. I am using Eclipse 3.5.
I've set -Djava.endorsed.dirs=${GLASSFISH_HOME}/modules/endorsed
and added javax.annotation.jar
to my projects build bath but still it doesn't compile.
I am not able to see the lookup parameter with @Resource
.
Could someone help me understand why am I not getting the lookup parameter with @Resource
?