Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Manged Objects & Administered Objects

 
manish ahuja
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
  • 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
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • 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.
 
Severin Stoeckli
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic