• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

query related to enterprise bean environment ?

 
Ranch Hand
Posts: 924
1
Netbeans IDE Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Creator of Enthuware JWS+ V6
Posts: 3411
320
Android Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
It means our mission is in jeapordy! Quick, read this tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic