1. Spring - @Transactional - What happens in background? stackoverflow.comI want to know what actually happens when you annotate a method with @Transactional? Of course, I know that Spring will wrap that method in a Transaction. But, I have the following doubts:
|
2. Configuration alternative to Spring @Transactional stackoverflow.comIs there any configuration based alternative to the @Transactional annotation in Spring? I want to keep my java classes as free from Spring as possible, i.e. as decoupled as possible from any ... |
3. Spring @Transactional - using Collections after persist/merge stackoverflow.comI am using Spring and JPA in my application, but lately I got a little confused with using collections from DomainObjects. For Example: Imagine we have two tables: Parent and Child. A parent ... |
4. Where to put @Transactional? In interface specification or implementation? stackoverflow.comWhat is considered the best practice in placing the @Transactional annotation? Should I annotate the interface method or the implementation? |
5. @Transactional not working forum.springsource.org@Transactional not working I have a spring application. I integrated it with hibernate, the application was working fine. I wanted to add spring transactional functionality to the application, so i added ... |
6. @Configurable and @Transactional issue forum.springsource.org@Configurable and @Transactional issue Hi, I am using Spring 3.0.5, Hibernate 3.6.0.Final, AspectJ 1.6.2 There is an Aspect defined in config.xml as: |
7. Roo1.2M1: @Transactional and Mongo forum.springsource.orgRoo1.2M1: @Transactional and Mongo Can someone clarify that there is "no magic" when using @Transactional and a mongo repository as described in this recent post: http://blog.springsource.com/2011/09...in-spring-roo/ What I mean by "no ... |
8. Can someone share an example on @Transactional forum.springsource.orgHey all, I know that documentation is still being written for this, but can anyone from Spring team share a piece of code that demonstrates how to utilize @Transaction with attributes ... |
9. Unable to get @Transactional working forum.springsource.orgUnable to get @Transactional working All, My app runs on JDK 1.5, Hibernate 3.0.5 and Spring 1.2.5 I've been unable to get the @Transactional attribute working. The relevant part of my ... |
10. @transaction does not work for a Runnable class forum.springsource.org@transaction annotation does not work for me if i start a new thread in tomcat and mark a method in runnable implementation class as transactional. I instanciate it through spring. Other ... |
11. @Transactional advice order forum.springsource.orgThere's a Jira issue that may be related to your question. http://opensource.atlassian.com/proj...rowse/SPR-2415 There is a comment in the Spring doco somewhere about using only one type of AOP approach, e.g. |
12. @Transactional forum.springsource.org@Transactional Hi there, I am trying to use get a simple code example working with Transactional annotation and I encounter the following issues: 1) applicationContext.xml has the following line: |
13. @Secured and @Transactional forum.springsource.org@Secured and @Transactional Hi. I am trying to use MethodSecurityInterceptor using annotations to define method security and annotation-driven transaction-manager. My config: Code: |
14. Lost in @Transactional forum.springsource.orgLost in @Transactional Hi Problem : transaction is not being commited. (Spring 2.0 deployed on tomcat 5.5) The application context Code: |
15. How to centralize parameters for @Transactional? forum.springsource.orgHi, im in the process of annotating my classes with transactional behaviour like this: Code: @Transactional(propagation=Propagation.REQUIRES_NEW, isolation=Isolation.DEFAULT, rollbackFor=MyException.class, readOnly=false) public void bearbeiten()throws MyException{ Now i dont want to repeat all these ... |
16. @Transactional class vs interface forum.springsource.org@Transactional class vs interface As requested by the Spring 2.0 docs, I've moved by @Transactional annotations from my interfaces to my classes. However, where I have the annotation on the class, ... |
17. @Transaction forum.springsource.org@Transaction I am having problems to with transactions,.. i have a folder tree : / |---->u2 |---->u3 |-->u4 ( When i insert, or modify elements from the root element (null parent), ... |
18. @Transactional forum.springsource.org@Transactional Hi, I am using @Transactional to define my transaction attributes. I am planning to use it on methods only as needed. May not define it at class level. I tried ... |
19. @Transactional and BeanFactoryAware forum.springsource.orgHi, when trying to annotate a BeanFactoryAware bean with Transactional attribute, i am getting: java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy35] to required type [de.netversys.process.DistributionProcessorDispatch er] for property 'distributionProcessorDispatcher': no matching ... |
20. Hopefully(?) easy @Transactional question forum.springsource.orgHopefully(?) easy @Transactional question Hi All- I'm new to Spring, and I have what I hope is an easy noob type problem: I believe I have a fairly typical structure for ... |
21. Using @Transactional and @Configurable forum.springsource.orgUsing @Transactional and @Configurable Hi We have been using the @Transactional declarative approach to transaction management for some time (using |
22. @Transactional not picked up forum.springsource.orgHi, The @Transactional annotation does not trigger anything when called from "this' as shown here: Code: public class MyService { protected MyDAO myDAO; public MyDAO getMyDAO() { return myDAO; } public ... |
23. @Transactional precisions forum.springsource.org@Transactional precisions Hi, I enabled @Transactional annotation and it seems that some methods are not transactional (they do not start a transaction). The annotated bean implements an interface (JDK dynamic proxy) ... |
24. Spring 2.5.1, stereotypes and @Transactional forum.springsource.orgSpring 2.5.1, stereotypes and @Transactional Hi, I can't get Spring/Hibernate to work with the new features of Spring 2.5. I'm using Spring 2.5.1, Hibernate 3.2.5 running on Glassfish v2. The problem ... |
25. @Transactional not working forum.springsource.orgI am trying to do Transaction management using @Transaction annotation.But the problem i am facing is that i am not being able to rollback the transactions in case of an exception.Could ... |
26. can't get @Transaction work forum.springsource.orgcan't get @Transaction work Hello. I'm developing a web application with Spring2.5 and Hibernate3. I would like to get the annotation @Transaction work in my service classes. I've looked for some ... |
27. @Endpoint and @Transactional on the same class forum.springsource.org@Endpoint and @Transactional on the same class if I have @Endpoint and @Transactional annotation on the same class (a transactional endpoint) I get: java.lang.IllegalArgumentException: object is not an instance of declaring ... |
28. @Transactional caused performance slow forum.springsource.org@Transactional caused performance slow I'm running Tomcat6 + Spring 2.5.1 I have a simple service (myService), annotated with @Service and @Transactional(readOnly=true). It required at least about 300ms to get the return ... |
29. Using @Transactional annoation forum.springsource.orgHi All I am trying to use annotational driven transaction management .. The thing is that when i am trying to fetch some bean from my Bean Factory , it does ... |
30. Cannot get spring's @Transactional to run. forum.springsource.orgCannot get spring's @Transactional to run. This is a refocused continuation of another thread that I had dealing with Hibernate and Spring working together. I believe I have the hibernate working ... |
31. |
32. @Transactional package-info.java forum.springsource.orgHi, I was hoping I could use org.springframework.transaction.annotation.Transac tional in my package-info.java, though the annotation is a Method or Type annotation, not a package annotation. Is there another annotation I can ... |
33. @Transactional und unittests forum.springsource.orgHello, i try to unit test if my @transactional annotation is working. But i have no idea how? More details: My transactionmanager looks like this: Code: |
34. @Transactional to propagate saveandupdate forum.springsource.orgHi all, Here is my dilemma: Code: Class: Outline {.... @OneToMany( targetEntity = Topic.class ) @JoinColumns({ @JoinColumn( name = "crse_id", insertable = true, updatable = true ), }) private List |
35. Strange @Transactional behaviour forum.springsource.orgStrange @Transactional behaviour Hello I have a ParameterizableViewController with the following method: protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception { orderservice.create((Set) WebUtils.getSessionAttribute(request, CART)); return super.handleRequestInternal(request, response); } The create method ... |
36. @Transactional inheritence forum.springsource.org@Transactional inheritence Hello, All my business services use the custom @BusinessService annotation, that is defined as : Code: @Target({ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) @Documented @Component public @interface BusinessService { /** * @return the component ... |
37. @Transaction - class not found forum.springsource.orgI'd love to post a question on the above, but keep getting this nonsensical error: 1. You are only allowed to post URLs to other sites after you have made 1 ... |
38. @Transaction - Bug or Feature? forum.springsource.org@Transaction - Bug or Feature? Hi, I am using annotations to configure my applications transactions. I have a service class that iterates through a list of objects and executes some updates, ... |
39. Spring @Transactional can't work ! forum.springsource.orgSpring @Transactional can't work ! i use @Transactional in service layer but it did't work (rollback) when i insert a data into database and throw a exception DAO @Repository public class ... |
40. @Transactional and concrete classes (Migration) forum.springsource.org |
41. Using @Transactional within several modules forum.springsource.orgUsing @Transactional within several modules I have problem of using transactions within several modules. I have configured TransactionManager in base dao module, than export it from base module and import it ... |
42. JaxWsPortProxyFactoryBean + @Transactional forum.springsource.orgHello, just a short question. I'm using the JaxWsPortProxyFactoryBean to provide a webservice. This webservice provides a webmethod with the Transactional annotation. After calling this service the following exception will be ... |
43. BeanNotOfRequiredTypeException using ServiceLocatorFactoryBean and @Transactional forum.springsource.orgBeanNotOfRequiredTypeException using ServiceLocatorFactoryBean and @Transactional I'm running into a problem using the ServiceLocatorFactorBean, where my locator interface returns an object that is marked @Transactional. Here is a summarized version of my ... |
44. AMS - Why no thruput metrics for @Transactional? forum.springsource.orgAMS - Why no thruput metrics for @Transactional? I am preparing for a large-scale scalability test of a Flex 3/LCDS 2.6/Spring 2.5 financial services application. I thought AMS would be a ... |
45. @Transactional and RMI forum.springsource.org@Transactional and RMI Hi everyone, I am trying to use Spring's transaction support using the above annotation on an existing project (we are trying to migrate to Spring). The method I ... |
46. Conflict between @Transactional and @AfterThrowing forum.springsource.org@Transactional(propagation = Propagation.REQUIRED) public class LoginDao extends HibernateDaoSupport implements ILoginDao { public void saveCustomerLogin(CustomerLogin customerLogin) { this.getHibernateTemplate().saveOrUpdate(customerLogin); } } |
47. @transactional and wildards forum.springsource.orgHi All, Sorry if the question has been answered, but here's my request. I'm porting an app from XML based conf to annotation based. For some services, I added the @Transactional. ... |
48. @Transactional behaviour forum.springsource.org@Transactional behaviour Hi All, I have a core library which exposes multiple services. Whenever these services call a Dao to update the database I've marked them with @transactional . However, if ... |
49. @Transactional on parent class not recognized: not good at all forum.springsource.org@Transactional on parent class not recognized: not good at all After struggling with a similar issue for several days, I've finally identified the culprit as exactly the same as discussed in ... |
50. @Transactional question forum.springsource.org@Transactional question Example: Code: @Transactional(rollbackFor=Throwable.class , propagation=Propagation.REQUIRED , isolation=Isolation.READ_UNCOMMITTED) public void methodA(){ methodB(); try { methodC(); } catch (Throwable e) { e.printStackTrace(); //Custom behavior //Do i need to rethrow this for ... |
51. @Transactional not working for me =\ forum.springsource.orgHello! I Have some problems with @Transactional annotation. Method marked as transactional working without transaction support and i cand find any proxy creation logs. Here is code listing and Spring Trace ... |
52. different using @Transactional and spring template ? forum.springsource.orgis using @Transactional in dao means , all my entitymanager query will be encapsulated with commit ,close ? or i need to use spring template (jpa template, hibernate template) ? i ... |
53. Why @Transactional doesn't work? forum.springsource.orgWhy @Transactional doesn't work? Hi all, I'm new with Spring and I got a strange thing with transactional annotation. I followed this sample : http://www.springbyexample.org/examp...on-config.html My orm.xml Code: |
54. @Transactional behaviour forum.springsource.orgJun 1st, 2009, 06:59 AM #1 msmbrb View Profile View Forum Posts Private Message Junior Member Join Date May 2009 Posts 5 @Transactional behaviour Hello, can anyone help me understand the ... |
55. @Transactional query forum.springsource.org@Transactional query Hello. I have been reading the article at http://www.infoq.com/articles/Simpli...nterprise-Apps. It specifies: 'The web layer, service layer, and data-access layer share a number of important characteristics: they should be as ... |
56. Spring @Transactional not working as expected. forum.springsource.orgJun 30th, 2009, 10:37 AM #1 akeyla View Profile View Forum Posts Private Message Junior Member Join Date Jun 2009 Posts 2 Spring @Transactional not working as expected. Hi, We have ... |
57. Parameterized Interfaces + @Transactional forum.springsource.orgParameterized Interfaces + @Transactional Over the past few weeks I've been working on a project that takes advantage of Java 1.5's parameterized interfaces. This post will hopefully help someone else from ... |
58. @Transactional fails when calling code introspectively? forum.springsource.orgJul 20th, 2009, 07:48 AM #1 chtimi View Profile View Forum Posts Private Message Junior Member Join Date Mar 2007 Posts 17 @Transactional fails when calling code introspectively? I'm doing tests ... |
59. Class is $Proxy27 with @Transactional forum.springsource.orgClass is $Proxy27 with @Transactional I am writing a simple TestNG test to verify my Spring wiring. I have a DAO that is annotated with @Transactional, and all I do in ... |
60. @Transactional doesnt create a transaction forum.springsource.org@Transactional doesnt create a transaction Hi, i have a weird issue here. I am using this spring config: |
61. @Transaction placed against advice code not initiating a transaction forum.springsource.org@Transaction placed against advice code not initiating a transaction I've an after-throwing aspect whose advice code method is being executed when a specific method throws an Exception. The problem is that ... |
62. @Before conflicts with @Transactional? forum.springsource.org@Before conflicts with @Transactional? Hi. I'm trying to create an interceptor on my DAOs that will set some audit info in the database just prior to executing an insert or update. ... |
63. @Transactional doesn't work forum.springsource.org@Service @Transactional public class UserServiceImpl implements UserService { @Autowired private UserDao userDao; public void addUser(Users u) { this.userDao.addUser(u); //throw an exception to test whether the transaction will rollback. throw new RuntimeException("Exception ... |
64. @Transactional and OSIV configuration forum.springsource.orgOct 13th, 2009, 06:41 PM #1 litmusunit View Profile View Forum Posts Private Message Junior Member Join Date May 2008 Posts 11 @Transactional and OSIV configuration Cannot get @Transactional to work ... |
65. @Transactional not working forum.springsource.org@Transactional not working Currently using Spring 2.5.6 + Hibernate. My get methods are executing correctly by my save methods are not issuing any sql statements. The relevant parts of a simple ... |
66. help on @Transactional in TX forum.springsource.orgim getting this error Code: Exception in thread "main" java.lang.ClassCastException: $Proxy17 cannot be cast to com.*********.database.service.StoryService at com.*********.test.Main.main(Main.java:28) here is my context xml Code: |
67. Weird @Transactional behaviour and a question forum.springsource.orgWeird @Transactional behaviour and a question Hi to all, I recently changed my application architecture to use Datasource dynamic routing in a master-slave database configuration. I added an aspect over @Transactional ... |
68. @PostConstruct and @Transactional forum.springsource.org@PostConstruct and @Transactional Hi I need my service class to load init configuration data at startup. To do so I use the @PostConstruct in a method to perform the configuration loading. ... |
69. @Transactional doesn't switch forum.springsource.orgJan 26th, 2010, 01:25 PM #1 julio View Profile View Forum Posts Private Message Senior Member Join Date Nov 2006 Posts 217 @Transactional doesn't switch Hi, I'm trying to develop a ... |
70. TimerTask and @Transactional not working forum.springsource.orgJan 28th, 2010, 12:50 PM #1 raul.arabaolaza View Profile View Forum Posts Private Message Member Join Date Jul 2007 Posts 88 TimerTask and @Transactional not working Hi, Im using JPA and ... |
71. ProccessListener (@AfterProcess) + @Transactional doesn't work forum.springsource.orgProccessListener (@AfterProcess) + @Transactional doesn't work Hello. I'm creating a job with Spring Batch 2.1.0 and JPA + JpaTransactionManager, but the @Transactional doesn't work in a Spring Batch Listener (@AfterProcess). My ... |
72. if @transactional is omitted forum.springsource.orgi have configured |
73. @Transactional results in PersistentObjectException: detached entity passed to persis forum.springsource.org@Transactional results in PersistentObjectException: detached entity passed to persis Hi All, using spring 3.03 and hibernate 3.3.2.GA with postgresql 8.4.x along with Hibernate Commons Annotations 3.1.0.GA. I have a functional test ... |
74. @Transactional not being honored using Extended PC forum.springsource.orgAug 11th, 2010, 12:50 PM #1 mbasnight View Profile View Forum Posts Private Message Junior Member Join Date Aug 2010 Posts 1 @Transactional not being honored using Extended PC I have ... |
75. Advice with @Transactional forum.springsource.orgAdvice with @Transactional Hey, was hoping someone might be able to shed some light on an issue I am having. I am trying to add advice to a method annotated with ... |
76. Implementing something similar to @Transactional forum.springsource.orgImplementing something similar to @Transactional Hi Spring Community, I'm currently using Spring in my application to handle dependancy injection and transaction management. Now, i'm facing an architecture choice and i need ... |
77. @Transactional throws "no matching editors or conversion strategy found" forum.springsource.org@Transactional throws "no matching editors or conversion strategy found" Aloha, I have a SpringBatch 3.0.0 Project that's reading some XML-Files and writes their content to an Oracle DB. Everything worked fine ... |
78. @Transactional on subclass forum.springsource.org@Transactional on subclass Hi, I have a subclass of an abstract class which is called by a TaskExecutor. It seems that then something goes wrong with @Transactional. public interface IFoo public ... |
79. @Transactional not working forum.springsource.orgHi, We are in the process of upgrading the Spring 2.5.6 to 3.0.5. Ours is a good working code base in 2.5.6 and we are using the Code: @Transactional(readOnly=false) on the ... |