• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

query related to enterprise bean environment ?

 
gurpeet singh
Ranch Hand
Posts: 924
1
Fedora Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
section 16.2.3 of ejb 3. 1 specs say

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.
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2438
95
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Regards,
Frits
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic