Solved

J2EE Tranactions

Posted on 2004-03-24
12
267 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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
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
 
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to get all the API from website? 11 92
Eclipse with gitlab 1 48
by zero exception 10 41
Java: How do I open the default windows program for a given file type 3 29
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

823 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