Environment entries may be declared by the use of annotations, without need for any deployment descriptor entries
which annotations is used to achieve this ?
i have searched the api and couldnt find any annotation that declares environment entries. i know we can declare @Resource on bean class which declares an environment entry in the beans jndi context but DOES NOT injects it. to give value to the jndi name i have to use <env-entry>. is the spec ONLY talking about declaring(as in @Resource on bean class) and NOT giving the value ? Please clarify. thanks dear ranchers.
In this section they are talking about all sorts of environment entries, so also EJBs that are injected by @EJB. You are right about the simple-environment-entries (String, Character, Integer, Boolean, Double, Byte, Short, Long, and Float). Those ones need a value for the injection to take place.