• Post Reply Bookmark Topic Watch Topic
  • New Topic

Transaction - Possible uses

 
narain ashwin
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to know if EJB transactions can be applied to any other resource other than the DB connection? What I understand is that Commit and Rollback on transactions execute the corresponding commands in the db connection. So it can be deducted that it doesn't make sense to define a transaction for business methods that don't perform any DB operations. Am I Right?
 
Karthik Shiraly
Bartender
Posts: 1210
25
Android C++ Java Linux PHP Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Business logic can involve different type of actions; relational DB changes are just one category. Some applications may also involve committing or rolling back of filesystem changes, or JMS queue/topic insertions, or memory cache changes. Transactions are not limited to just relational DB changes. The transaction manager and resource manager APIs allow integration of various resources - including legacy systems - into the transaction framework.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!