Solved

J2EE Tranactions

Posted on 2004-03-24
12
258 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
ID: 10666768
No
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 10666822
You don't have a roll-back in Java ;-)
0
 

Author Comment

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

Expert Comment

by:Mayank S
ID: 10666881
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 10666896
A transaction applies to the database and java objects that have effectively 'become' the database through CMP/BMP - not any other objects.
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 92

Expert Comment

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

Expert Comment

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

Expert Comment

by:CEHJ
ID: 10858412
8-)
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 10859166
Well, even here, CEHJ, the recommendation was not acted upon ;-)
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 10859190
Maybe it was closed by the questioner ;-)
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 10859209
No worries :-)
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
recursion example 16 111
jar file executable 12 42
Java SE 8u111  Lot of stuff broke 11 54
tomcat not starting 6 31
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
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…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

920 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

14 Experts available now in Live!

Get 1:1 Help Now