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

J2EE product that does not support two-phase commit?

 
Win Yu
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"It is important for developers to understand and distinguish which transaction capabilities are required and which are optional in a J2EE product. To write a truly portable application, developers should only use features required by the J2EE specification. For example, if a J2EE application needs to access multiple databases under a single transaction, it will not run properly on a J2EE product that does not support two-phase commit."
Above message is in the brueprint. Is that true?
 
Bagwan Mehrat
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which sentence are you asking is true? There are three:
"It is important for developers to understand and distinguish which transaction capabilities are required and which are optional in a J2EE product"
This sounds true.
"To write a truly portable application, developers should only use features required by the J2EE specification"
This sounds true.
"For example, if a J2EE application needs to access multiple databases under a single transaction, it will not run properly on a J2EE product that does not support two-phase commit."
This sounds true.
 
Win Yu
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
because spec does not gurantee that EJB server must support two phase commit, I think we can not be sure EJB server will do it properly.That is what I meant.
[ March 26, 2002: Message edited by: Win Yu ]
 
Bagwan Mehrat
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If Sun says that support for two-phase commit is not required by their J2EE specification, I don't find that hard to believe. WebLogic didn't support two-phase commit until version 6, for example, if I remember correctly.
Besides, if you think about it, the Sun/J2EE bailiwick is Java containers, not databases, so I can't see them dictating too many database requirements, aside from API's.
 
Win Yu
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply. It seem like that there are not many people care about this knid of topic. Maybe, because the EJB has not been used widely.
[ March 27, 2002: Message edited by: Win Yu ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic