This week's book giveaway is in the Cloud forum.
We're giving away four copies of Terraform in Action and have Scott Winkler on-line!
See this thread for details.
Win a copy of Terraform in Action this week in the Cloud 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

help!!Everyone

 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi everyone,
could you please tell me what we mean when we say
"Enterprise javabeans cannot directly access the transcation manager.container has the responsibility of managing transcations."
what exactly we mean by "transcations" here??
is it transcations with the database.
also please tell me how container will managed them.
thanks
asheet
 
author
Posts: 3252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by asheet anand:
what exactly we mean by "transcations" here??
is it transcations with the database.
also please tell me how container will managed them.


It is transactions with the database and everything else that supports them In your EJBs, you can access various databases and message queues, all of which support transactions. You, as EJB developer, can determine that all of this has to happen in the context of one single, distributed transaction.
It depends on the transaction properties you set in the EJB descriptor, but generally, the container manages this transaction as follows. If the EJB method call returns normally, the transaction is committed (using a two-phase commit for a distributed transaction). If, on the other hand, an unexpected error occurs (some flavour of RuntimeException is thrown or your EJB calls EJBContext.setRollbackOnly()), the transaction is rolled back.
- Peter
 
You showed up just in time for the waffles! And this 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
reply
    Bookmark Topic Watch Topic
  • New Topic