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?
I drink two cappuccinos a day.Is that of any help to solve java problems??
JBoss 6 - Admin console Username/pwd: admin/admin
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.