We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

J2EE Tranactions

krelman
krelman asked
on
Medium Priority
308 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?  
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2016
Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview
Mayank SPrincipal Technologist
CERTIFIED EXPERT

Commented:
You don't have a roll-back in Java ;-)

Author

Commented:
Then what is the exact  meaning of J2EE Transaction ?
Thanks.
Mayank SPrincipal Technologist
CERTIFIED EXPERT

Commented:
CERTIFIED EXPERT
Top Expert 2016

Commented:
A transaction applies to the database and java objects that have effectively 'become' the database through CMP/BMP - not any other objects.
Mick BarryJava Developer
CERTIFIED EXPERT
Top Expert 2010

Commented:
Transactions are related to db data, not your objects. You need to manage those yourself.
Mick BarryJava Developer
CERTIFIED EXPERT
Top Expert 2010

Commented:
Read the tute posted by mayankeagle above, it gives a good overview.
CERTIFIED EXPERT
Top Expert 2016

Commented:
8-)
Mayank SPrincipal Technologist
CERTIFIED EXPERT

Commented:
Well, even here, CEHJ, the recommendation was not acted upon ;-)
CERTIFIED EXPERT
Top Expert 2016

Commented:
Maybe it was closed by the questioner ;-)
Mayank SPrincipal Technologist
CERTIFIED EXPERT

Commented:
No worries :-)
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.