Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 298
  • Last Modified:

J2EE Tranactions

in J2EE:

suppose that inside a J2EE transaction not just updates to the DB are preformed, but also some objects and primitive types are being changed.if the transactions fails to reach the commit stage for some reason, and a rollback action is performed would the initial value of the objects and primitve types be restored?  
0
krelman
Asked:
krelman
  • 4
  • 4
  • 2
  • +1
1 Solution
 
CEHJCommented:
No
0
 
Mayank SAssociate Director - Product EngineeringCommented:
You don't have a roll-back in Java ;-)
0
 
krelmanAuthor Commented:
Then what is the exact  meaning of J2EE Transaction ?
Thanks.
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
Mayank SAssociate Director - Product EngineeringCommented:
0
 
CEHJCommented:
A transaction applies to the database and java objects that have effectively 'become' the database through CMP/BMP - not any other objects.
0
 
objectsCommented:
Transactions are related to db data, not your objects. You need to manage those yourself.
0
 
objectsCommented:
Read the tute posted by mayankeagle above, it gives a good overview.
0
 
CEHJCommented:
8-)
0
 
Mayank SAssociate Director - Product EngineeringCommented:
Well, even here, CEHJ, the recommendation was not acted upon ;-)
0
 
CEHJCommented:
Maybe it was closed by the questioner ;-)
0
 
Mayank SAssociate Director - Product EngineeringCommented:
No worries :-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 4
  • 4
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now