Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Transaction descriptors don�t need method-intf ?

 
Timothy Toe
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For those with the book, HF-EJB page 582.

Why SECURITY descriptors need <method-intf>Home/Remote/LocalHome/Local</method-intf> but TRANSACTION descriptors don�t ?
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The method-intf deployment description element is a child element of the method element, and it is thus possible to use it for specifying transactional methods as well (see section 17.4.1 of the EJB 2.0 specification). Also refer to the Deployment Descriptor chapter where the method element is defined and you will see some examples.
 
Timothy Toe
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Crettaz,

Thanks for the helpful reply.

So, this means that the <method-intf> element is not tied to security or transaction or anything ? As long as the <method> element is used, then we will be able to use it ?

Just to confirm.

I had this confusion because HF-EJB does not mentioned about <method-intf> in the transaction chapter... it's only mentioned in the security chapter.

Also, like HFEJB, your DD Cheat Sheet does not have method-intf for transaction... only for method-permission (security).

Thanks.
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, this means that the <method-intf> element is not tied to security or transaction or anything ? As long as the <method> element is used, then we will be able to use it ?
Just to confirm.

Absolutely

I had this confusion because HF-EJB does not mentioned about <method-intf> in the transaction chapter... it's only mentioned in the security chapter.
But the EJB spec does!

Also, like HFEJB, your DD Cheat Sheet does not have method-intf for transaction... only for method-permission (security).
An ommission on my part, I will take care of that ASAP. Thanks for the feedback
 
Timothy Toe
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Crettaz, relax, take your time.

I must say that your cheat sheets look helpful.

Only "look"... you wonder...

Well..cos I have not really used it or have not really memorized it. I am sure "look helpful" will be upgraded to "indeed helpful" when I memorize them.

Thanks again.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic