Solved

J2EE Tranactions

Posted on 2004-03-24
12
248 Views
Last Modified: 2013-11-24
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
Comment
Question by:krelman
  • 4
  • 4
  • 2
  • +1
12 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 150 total points
Comment Utility
No
0
 
LVL 30

Expert Comment

by:mayankeagle
Comment Utility
You don't have a roll-back in Java ;-)
0
 

Author Comment

by:krelman
Comment Utility
Then what is the exact  meaning of J2EE Transaction ?
Thanks.
0
 
LVL 30

Expert Comment

by:mayankeagle
Comment Utility
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
A transaction applies to the database and java objects that have effectively 'become' the database through CMP/BMP - not any other objects.
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 92

Expert Comment

by:objects
Comment Utility
Transactions are related to db data, not your objects. You need to manage those yourself.
0
 
LVL 92

Expert Comment

by:objects
Comment Utility
Read the tute posted by mayankeagle above, it gives a good overview.
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
8-)
0
 
LVL 30

Expert Comment

by:mayankeagle
Comment Utility
Well, even here, CEHJ, the recommendation was not acted upon ;-)
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
Maybe it was closed by the questioner ;-)
0
 
LVL 30

Expert Comment

by:mayankeagle
Comment Utility
No worries :-)
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now