Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Yet another dumb question

 
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I know it sounds very stupid, but what is the difference between
"REQUIRES NEW" And a Nested transaction?? To me both seems same. Someone please explain.
regards,
Sajid
 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good catch :-)

Both of them might look alike, but they are quite different.

For example, Nested transactions can operate concurrently, where as the "REQUIRES NEW" stuff will make the callee to wait until the spawned transaction returns back!

EJB Spec (page no. 332) makes clear why nested transactions are not supported.

Note: The decision not to support nested transactions allows vendors of existing transaction
processing and database management systems to incorporate support for Enterprise Java-
Beans. If these vendors provide support for nested transactions in the future, Enterprise Java-
Beans may be enhanced to take advantage of nested transactions.
 
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Balaji for the explanation.I too had that doubt.It got cleared now.
B.T.W when did u passed SCBCD? I didn't see that post at all
 
Balaji VR
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did that by 27th of April
 
satheesh krishnaswamy
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh! congrats.Nice Score

Can you share your Exam experience with us,Please.
 
Balaji VR
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, I took about 40 days for the full preparation. I started with Mastering EJB book. Then I printed out EJB spec and bought HFEJB book. I read them parallely. Once I am done with HFEJB, I was reading only EJB spec

Once I became confident of the EJB conepts, I took the mock exam in HFEJB book. The next day I took EJBCertificate.com mock exam. 2 days after that, I gave SCBCD exam.

Thats it!!!
 
Yeah, but how did the squirrel get in there? Was it because of the tiny ad?
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic