Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • 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

Manged Objects & Administered Objects

 
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All

Whats the difference between the two (managed objects & administered objects) . Can someone explain with an example


Bye
Manish
 
Author & Gold Digger
Posts: 7617
6
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Strictly speaking, we talk about managed resources and administered objects.

Section 20.4 of the spec states:
"Because these resource manager connection factories allow the Container to affect resource management, the connections acquired through the resource manager connection factory references are called managed resources (e.g., these resource manager connection factories allow the Container to implement connection pooling and automatic enlistment of the connection with a transaction)."

Basically, managed resources are managed by the J2EE container itself (JDBC DataSource, etc) while administered objects are managed by a separate server like a JMS provider or a JavaMail server.
 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Correct!

my "think-short" 4 the exam:

managed resources are defined in the <resource-ref> section of the DD:

- JDBC-Connection
- JMS Queue connection Factory
- JMS Topic connection Factory
- JavaMail
- URL

administered objects are defined in the <resource-env-ref> section of the DD:

- JMS Queue
- JMS Topic

Severin
reply
    Bookmark Topic Watch Topic
  • New Topic