• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

query related to enterprise bean environment ?

 
Ranch Hand
Posts: 924
1
Netbeans IDE Fedora Java
  • 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.
 
Creator of Enthuware JWS+ V6
Posts: 3354
303
Android Eclipse IDE Chrome
  • 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
 
I have a knack for fixing things like this ... um ... sorry ... here is a consilitory tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic