• 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
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Understand resource-env-ref

 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In the spec,

the Bean Provider must not use a env-entry element to declare it. Instead, the Bean Provider must declare all references to administered objects associated with resources using the resource-env-ref elements of the deployment descriptor.


I don't quite understand what the spec really mean? Further more, what's the diff between resource-ref and resource-env-ref? Why to use resource-env-ref instead of resource-ref?
 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This topic is covered in the last chapter of HFE. The main difference is that with <resource-ref> -declarations you can configure connection factories (javax.sql.DataSource, javax.jms.Queue, java.net.URL and javax.mail.Session), and with <resource-env-ref> declarations you can configure administered objects (currently only JMS destinations).
Don't ask why it has been made so complicated thou!
 
Ali Ragi
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks!
I still don't quite understand what is "administered objects"? Why connection factories are not considered "administered objects"? I think they are all container administer resources?
 
reply
    Bookmark Topic Watch Topic
  • New Topic