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

Clarification question for transactions and EJB container

 
Raghubir Bose
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. EJB Container must support JTA for User transaction, basically for bean managed persistance

2. EJB transactions must support JTS for container managed transactions since EJB container also support 2PC and they require a co-ordinator for DTC.
 
B.Sathish
Ranch Hand
Posts: 372
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think 1 is true and 2 is false
 
Raghubir Bose
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was wondering why 2 is false since one of the goal of EJB is distributed computing however I got something from Sun which categorically says that you are true about number 2 which is false

It says

"spec 1.1 and 2.0 does not specify mandatory 2PC for an EJB container.
JTA is only a simple interface to a transaction service, not the standard
for its architecture. This would be JTS, and JTS is only recommended but not mandatory. JTS was only mandatory in EJB 1.0 and Sun got a hell lot of
problems with the container vendors because they thought the spec is
regulating to much of their container architecture so they took it out."

(http://archives.java.sun.com/cgi-bin/wa?A2=ind0009&L=ejb-interest&P=51908)

--Thanks Satish
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic