File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Spring Transaction Management Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring Transaction Management" Watch "Spring Transaction Management" New topic
Author

Spring Transaction Management

Manoj Raghuwanshi
Ranch Hand

Joined: Jun 20, 2004
Posts: 75
Hi All,

I have a message driven bean created using Spring. Transaction attribute in ejb-jar.xml is 'NotSupported' now if any method in the bean throws RunTimeException then what wil happen? By default if transaction is there spring will rollback the transaction. In this case transaction is not present then how spring will be behave?

Thanks in advance.

Regards,
Manoj
Vivek K Singh
Ranch Hand

Joined: Dec 22, 2009
Posts: 85

Spring will manage transactions only if you ask spring to... You will have to create transaction manager and write transaction advice on the method, then on a RuntimeExec the transaction will be rolled back.


SCJP 6
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Spring Transaction Management
 
Similar Threads
Call Transactional Remote Session Bean From Spring
What is "Lightweight"?
Please explain...
hibernate in Spring framework
session.connection() is depricated . How to setAutoCommit(false) ?