Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

what are nested transactions?

 
yamini nadella
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
(1)EJB's don't support nested transactions.
Transaction means set of updates. but what are these nested trasactions?
(2)what are transaction isolation levels?
(3) if EJB bean has static variables then can't this EJB is portable? why?

Yamini
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

(1)EJB's don't support nested transactions.
Transaction means set of updates. but what are these nested trasactions?

It means that, when the method is in a transaction, you cannot create a new one within that method.


(2)what are transaction isolation levels?

The transaction isolation levels are not specified in EJB spec, it depends on the database setting.


(3) if EJB bean has static variables then can't this EJB is portable? why?

Because different containers may use different means to treat this variable.

Nick
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!