Environment entries may be declared by the use of annotations, without need for any deployment descriptor entries. Environment entries may also be declared by deployment descriptor entries, without need for any annotations. The same environment entry may be declared using both an annotation and a deployment descriptor entry. In this case, the information in the deployment descriptor entry may be used to override some of the information provided in the annotation. This approach may be used by an Application Assembler to override information provided by the Bean Provider.
I know how to declare an environment entry using deployment descriptor like this:
But I have no idea and couldn't find in our forums how to declare the same entry using EJB3 annotation such that I can use use annotation to access this entry from stateless session bean like the following way: