• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Yet another dumb question

 
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I did that by 27th of April
 
satheesh krishnaswamy
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!!!
 
I brought this back from the farm where they grow the tiny ads:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic