transaction 4 « Transaction « Spring Q&A





1. Mixing persistence implementations in the same transaction    forum.springsource.org

Mixing persistence implementations in the same transaction Is it possible to use separate DAOs implemented using different persistence strategies in a transactional service, as in the following (simplified) example ? If ...

2. Rich Domain Classes and Transactions    forum.springsource.org

Rich Domain Classes and Transactions Greetings, Let's say we have a layered system - domain, DAL, BL and web (the web controllers never access the DAOs directly). The DAOs are injected ...

3. AbstractJpaTest and Transactions    forum.springsource.org

AbstractJpaTest and Transactions First can anyone point me to some good documentation on how to use AbstractJpaTests? I have written a simple test case that tests the persist operation on an ...

4. How many transactions will be created?    forum.springsource.org

I have 2 transactional proxys (eg, xac1 & xac2), both PROPAGATION_REQUIRED. A method in xac1 calls a method in xac2. Will a second transaction be created in xac2? Or, will xac2 ...

5. Retry/Transactions/recover() related questions    forum.springsource.org

Retry/Transactions/recover() related questions Hi, I will try and explain my usecase and hope someone can tell me how I can use Spring Batch solve that I need to read items from ...

6. Transaction : Reading from database1 and writing to a database2    forum.springsource.org

Hi all, I am new to spring transactioning. My use case is that during my batch process I need to read data (say one row at a time ) from database1 ...

7. Transaction Management    forum.springsource.org

I have a class in which i have 100 methods, and i want transaction management on all these methods will you tell me the best way of transaction management. Thnaks.

8. Transaction on Class    forum.springsource.org

9. Transaction Management (newbie question)    forum.springsource.org

Transaction Management (newbie question) I have used Spring but have yet to use any Transaction Management. Do I have to use AOP in order to use Transaction Management? I simply have ...





10. Processed items not bound to transaction    forum.springsource.org

Hi I have a ItemOrientedStep interacting with a RepeatTemplate. The batch has one record. The one record is correctly processed in the first transaction. Then in the second transaction there are ...

11. Make HibernateCallback doInHibernate transactional?    forum.springsource.org

Make HibernateCallback doInHibernate transactional? Hi, I have some code like: Code: getHibernateTemplate().execute(new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateException { Transaction tx = null; try { tx = session.beginTransaction(); // ...

12. Transactional + implement Observer    forum.springsource.org

Transactional + implement Observer Hello. I've got a class (PersonService) which is @Transactional and implements java.util.Observable. Haven't found anything signaling this shouldn't work when googling around for clues. But it does ...

13. Code in @BeforeClass isn't run inside of a transaction    forum.springsource.org

Code in @BeforeClass isn't run inside of a transaction I'm using Spring 2.5 + TestNG. I am writing some DAO tests that extend AbstractTransactionalTestNGSpringContextTests. In order to test my DAOs, I ...

14. SynchronousChannel and transactions    forum.springsource.org

From http://jira.springframework.org/browse/INT-85: "The M3 release provides a new SynchronousChannel so that a handler can execute within the sender's thread, and a pollable-source can be polled within a receiver's thread. These enable ...

15. org.springframework.transaction.TransactionSystemE xception    forum.springsource.org

org.springframework.transaction.TransactionSystemE xception Hi, I am developing an application using spring 2.5.1, hibernate 3.2.5, and JSF 1.1_02. In one of the pages, there is a submit button, which upon clicking it should ...

16. Business Transactions not rolled back    forum.springsource.org

Business Transactions not rolled back Hello All, I believe I should provide transaction configurations for my DAO in order for it to rollback if the process failed in the middle. Here ...





17. transaction handling outside spring    forum.springsource.org

Hi! How can I invoke two transactional spring beans in the same transaction? The caller cannot be a spring bean. Example of what would happen outside of spring: Code: Bean1Class bean1 ...

18. Need info on PROPGATION_REQUIRED transactions    forum.springsource.org

Need info on PROPGATION_REQUIRED transactions Here are few observations related to problem i am facing. Transaction atttributes defined for Service class. ----------------------------------------------------- PROPAGATION_REQUIRED PROPAGATION_REQUIRED PROPAGATION_REQUIRED ...

19. Spring transaction related error    forum.springsource.org

Apr 30th, 2008, 06:01 PM #1 techluver View Profile View Forum Posts Private Message Member Join Date Jul 2007 Posts 58 Spring transaction related error Hello, I recently configured the spring ...

20. Question regarding Transaction flow    forum.springsource.org

Question regarding Transaction flow The thing im wondering about is, when does the transaction start and end (commit) for my web app, when doing a update? Im using JSF1.1, Spring 2.0.8 ...

21. XA Transactions in stand alone applications    forum.springsource.org

XA Transactions in stand alone applications I am working on a standalone application which recieves messages from MQseries and processes the messages. I want a transaction manager which can hold all ...

22. Transactions...Is this possible?    forum.springsource.org

Transactions...Is this possible? Hi, After several days of trying & reading lots of documentation I am struggling to find out whether what I am attempting to do is even possible using ...

23. Odd use case? Transactions at object instance level not class level    forum.springsource.org

May 15th, 2008, 12:24 PM #1 skywind8 View Profile View Forum Posts Private Message Junior Member Join Date May 2008 Posts 12 Odd use case? Transactions at object instance level not ...

24. preventing a "completing transaction"    forum.springsource.org

May 16th, 2008, 05:37 PM #1 jsfguy123 View Profile View Forum Posts Private Message Junior Member Join Date May 2008 Posts 5 preventing a "completing transaction" Hi, I need help getting ...

25. CICS Transaction Calls    forum.springsource.org

I am currently working on a project that will require me to make a CICS transaction call. I am using Spring V2.0 + Ibatis + Tomcat V6. I have never done ...

26. Transaction marked as rollbackOnly    forum.springsource.org

Transaction marked as rollbackOnly Hi, friends. I am using all the Struts2/Spring/Hibernate/JPA stuff Code: javax.persistence.RollbackException: Transaction marked as rollbackOnly at org.hibernate.ejb.TransactionImpl.commit(TransactionImpl.java:51) Why am I getting this exception in my application? I ...

27. Can't resolve javax.transaction...    forum.springsource.org

May 29th, 2008, 12:58 AM #1 mburbidg View Profile View Forum Posts Private Message Member Join Date Aug 2005 Posts 62 Can't resolve javax.transaction... I'm going along using the bundle repository ...

28. Transaction Management    forum.springsource.org

Transaction Management Hi Im using hibernate and DB2 in my application. I've downloaded sample Workspace and tried implementing Spring Batch. I found that based on chunk size transactions are committed. Is ...

29. Transaction setting for TaskletStep    forum.springsource.org

Transaction setting for TaskletStep Dear all, I have a tasklet that needs to do some DB updates. I have a brief scanning through TaskletStep, unlike ItemOrientedStep, it does not contains any ...

30. ACL Transaction must be running    forum.springsource.org

Hello everyone, I have a problem with ACLs. I implemented the Contacts application to run with my own database and it works just fine. Then i added another class to the ...

31. Mixing transaction management    forum.springsource.org

Mixing transaction management I have working webapp (spring/hibernate/richfaces) where majority of data access/management is done within a single request. I have OpenSessionInViewFilter managing the hibernate session and HibernateTransactionManager managing the transactions. ...

32. Recommendation on transaction approach?    forum.springsource.org

Recommendation on transaction approach? I've got another open thread (Having real trouble configuring JTA txManagement w/ JBoss & Hibernate), but I thought I'd take a step back and ask a more ...

33. managing transactions    forum.springsource.org

managing transactions Hi everyone, i just joined this forum so i would like to say Hi umm well im on my first real project and im actually working with Spring + ...

34. Transactional question for Step execution    forum.springsource.org

Hi, I have a fundamental question. In a step which does a chunk processing, the framework launches a new transaction (REQUIRES_NEW) for each chunk right irrespective of the transactional settings on ...

35. Need Help in Transactions    forum.springsource.org

Need Help in Transactions Hi Here is my problem... In a main thread, I am creating a message id, updating it in a table and then spanning a new thread using ...

36. Transactions and Hair Loss    forum.springsource.org

Transactions and Hair Loss The @transactional annotation seems to be having no effect I am using them on concrete classes I am using them on methods that are called externally I ...

37. Programmatic Transaction    forum.springsource.org

We have a spring framework with declarative transaction but for one specific module we need to commit data by table. This business module will be calling DAO's which have getHibernateTemplate.save() for ...

38. EJB2 with ejbTimers (and transaction nightmare)    forum.springsource.org

EJB2 with ejbTimers (and transaction nightmare) Hi, I have a SSB which implements the timedObject, and as such has an ejbTimeout method. Injected into this SSB (via spring) is a simple ...

39. Transaction within transaction    forum.springsource.org

Hi, Is it possible to have a transaction (handled by the PlatformTransactionmanager) within a CMT? Ie mdb started, calls method in pojo, starts new tx,does stuff, commits that transaction, returns and ...

40. Transaction Management.    forum.springsource.org

Transaction Management. I am new in Spring I was reading the about the declarative transaction management in Spring 2.0 and found how to define the advice as follow. ...

41. Transaction not rolling back using AbstractTransactionalTestNGSpringContextTests    forum.springsource.org

Transaction not rolling back using AbstractTransactionalTestNGSpringContextTests I'm having a problem understanding why transactions on my AbstractTransactionalTestNGSpringContextTests test classes aren't rolling back properly (using Spring v2.5.5, Hibernate v3.2.6ga, TestNG v5.7 and HSQLDB ...

42. Starting a Transaction in View    forum.springsource.org

Starting a Transaction in View Hello, I want to use the OpenPersistenceManagerInViewFilter to open a JDO persistence manager. However, I also want to start a transaction in a filter so that ...

43. mixing transaction strategy.    forum.springsource.org

44. extra transactions produced?    forum.springsource.org

extra transactions produced? Hi all, I am a new user in the Spring framework since I recently tried to use the spring abstraction with the hibernate ORM framework. I make a ...

45. Transactional Validator    forum.springsource.org

Hi. Code: public class LoginValidator implements Validator { public boolean supports(Class c) { return Login.class.isAssignableFrom(c); } public void validate(Object o, Errors e) { ValidationUtils.rejectIfEmptyOrWhitespace(e, "id", "id-required"); } } Can this validator ...

46. junitx.util.PrivateAccessor and Spring Transactions    forum.springsource.org

junitx.util.PrivateAccessor and Spring Transactions We are using PrivateAccessor to invoke private methods in JUnit tests. This works fine. However, when we wrap the bean in a transaction using the TransactionProxyFactoryBean the ...

47. Spring Transactions    forum.springsource.org

Spring Transactions Hi I am trying to implement the spring transactions following the petclinic2.0.8 sample application. In place of clinic transaction bean i have userServiceImpl which take care of login and ...

48. Transaction and Shutdown Questions    forum.springsource.org

Transaction and Shutdown Questions I need to write a job that imports documents into a document management system (EMC Documentum). Transactions will be commited using the proprietary API of that DMS, ...

49. Transaction requires_new issue    forum.springsource.org

Hi We use Jboss transaction manager with hibernate 3.2.6 and Spring 2.5.4. I wrote a simple controller which call method that insert new record to DB. I define the method as ...

50. how to know if transaction work?    forum.springsource.org

how to know if transaction work? hi i use spring 2.5.2, i enable (i hope) transaction in spring xml config file... but i don't how to be sure if that work ...

51. Transaction not propagated (in OSGi environment)    forum.springsource.org

Aug 5th, 2008, 06:28 AM #1 Nico View Profile View Forum Posts Private Message Visit Homepage Member Join Date Jun 2007 Location Nantes, France Posts 44 Transaction not propagated (in OSGi ...

52. sub transaction Requires_New get detached object    forum.springsource.org

sub transaction Requires_New get detached object Hi, I have the problem that when i make a sub-transaction with propagation Requires_New that i get a detached object after persist (or merge) on ...

53. Transaction Config error    forum.springsource.org

Transaction Config error Hi, I'm working with Spring + Ibatis (2.3.0) + Postgresql (8.2.508). When I try to update a record o a table, it returns an exception. org.postgresql.util.PSQLException: ERROR: transaction ...

54. Transaction operation sequence    forum.springsource.org

Transaction operation sequence Hi, I have a situation where I am trying to update an existing object and change a unique key value, in the same transaction I am trying to ...

55. Transactions    forum.springsource.org

Transactions Hi, I'v been trying for the past couple of days to get my new spring application 'transaction-aware' but so far have failed miserably and cannot find any obvious reason why ...

56. need for middle tier to handle transactions    forum.springsource.org

need for middle tier to handle transactions I hope you could help me understand this issue: Suppose we use spring as container, hibernate as a persistence mechanism. Scenario 1) 2 tier ...

57. help, confused about transactions    forum.springsource.org

help, confused about transactions In "Expert Spring MVC and Web Flow" (http://apress.com/book/view/9781590595848) in the beginning of the book there's a great explanation of the different layers; service, persistence, domain, ui/web. If ...

58. SimpleJdbcTemplate and programmatic transactions    forum.springsource.org

SimpleJdbcTemplate and programmatic transactions dear all, I am trying to develop a wrapper around spring jdbc for my application. We also have a inhouse implementation of the DB access framework. i ...

59. Bug in Spring transaction suspension?    forum.springsource.org

Bug in Spring transaction suspension? I'm using Spring 2.5.1 transactions and DAO support with Hibernate 3.2.5 for data access. I need to access two separate databases to read records from one, ...

60. Spring Transaction Management    forum.springsource.org

Sep 15th, 2008, 03:14 AM #1 libranram View Profile View Forum Posts Private Message Junior Member Join Date Jan 2008 Posts 6 Spring Transaction Management Hi All, I am using Spring ...

61. Transactions - default settings    forum.springsource.org

Hello In project I am going to use annotation-driven transaction approach. Question: how to set project specific default values for transaction attributes? In order not to write every time Transactional(propagation = ...

62. postInterceptor and transaction    forum.springsource.org

postInterceptor and transaction Hi, I'm having trouble with transaction when I use postInterceptor. Let's explain the problem in a simplified mode I have an object Reference that can be linked to ...

63. Transaction issues    forum.springsource.org

Transaction issues Hi Using IBatis one of my DOA methods does 3 inserts into 3 different tables. When transactions are disabled it works perfectly. When I enable transactions using the Transactional ...

64. Transactions not being commited with defaultautocommit set to false    forum.springsource.org

Transactions not being commited with defaultautocommit set to false I'm using spring, hibernate, and Postgres, and have the following configuration: Code: ...

65. Transaction Level Validation?    forum.springsource.org

Transaction Level Validation? My apologies if this question has been asked before, but Ive searched & couldn't find an answer. Is there a way for the framework to deal with "transaction ...

66. Transactions and large ScrollableResults    forum.springsource.org

Transactions and large ScrollableResults I have the typical dao + service architecture and I'm scrolling through large result sets using ScrollableResults (> 250,000 rows). I have several classes: BookService HistoryService BookLoader ...

67. About Transaction in spring    forum.springsource.org

About Transaction in spring say hi all. I am using the spring with hibernate. when deal with persisting data with database(insert update..and so on),there are no exception but fail to persist.no ...

68. Transaction not working properly    forum.springsource.org

I need to insert records into the table, the process goes fine for 4 records, due to some data issue my 5th record doesnt get inserted into the database, then it ...

69. Handling Transactions declaratively in spring    forum.springsource.org

Oct 24th, 2008, 09:28 AM #1 soumyasree View Profile View Forum Posts Private Message Junior Member Join Date Oct 2008 Posts 15 Handling Transactions declaratively in spring HI, I'm using declarative ...

70. AbstractTransactionalTestNGSpringContextTests mandatory for transaction support?    forum.springsource.org

AbstractTransactionalTestNGSpringContextTests mandatory for transaction support? I'm trying to test some JPA classes with TestNG. From the documentation To enable support for transactions, however, you must provide a PlatformTransactionManager bean in the ...

71. Managing transaction data    forum.springsource.org

Managing transaction data Hello, Consider this scenario: All the persistent entities in my application have aidit fields which includes a modification timestamp. My requirement is that the modification timestamp for all ...

72. Best practice/approach for transaction handling    forum.springsource.org

Best practice/approach for transaction handling I need to process daily items provided by an HibernateItemReader. In the writer I call a business method. I need to force a rollback, so that ...

73. Transaction around "requests"    forum.springsource.org

I want to manage a transaction around "requests" in the general sense (not necessarily web requests). Most of the spring stuff seems to be built to wrap a method call with ...

74. MQ transaction support?    forum.springsource.org

MQ transaction support? hi i'm working on a Spring 2.5 application which consumes a messages from an MQ queue, does some processing, and pushes a response back onto a queue under ...

75. Transaction weirdness? (The values I just inserted are not returned on a select)    forum.springsource.org

Transaction weirdness? (The values I just inserted are not returned on a select) My service test fails probably 50% of the time. The test calls "addFoos" which calls a DAO that ...

76. User transactions and Spring    forum.springsource.org

I am using tomcat 6.x, and Spring, i am having One registration form which insert data into the db and send an email with activation link. Now problem is if record ...

77. No more conversation transaction management?    forum.springsource.org

Hi, onepd.com One Page design pattern eliminates conversation transaction management is this true, did somebody try similar or this pattern ? onepd.com Thanks.

78. Transactions    forum.springsource.org

Transactions Hi. I want to * receive a jms message from 'myJmsQueue' * put it on the 'requestChannel' SI channel * process it in 'MyService.handleMessage(Message message)' * put the result on ...

79. Spring transaction handling -- help needed    forum.springsource.org

Spring transaction handling -- help needed Hi, I'm currently struggling with integrating Spring transactions into the current project. As I was new to Spring transactions, I implemented a small POC that ...

80. ApplicationContext vs BeanFactory with Transactions    forum.springsource.org

ApplicationContext vs BeanFactory with Transactions Dear community, I've read many posts in this forum and on the web in general pointing out the difference between an ApplicationContext and a BeanFactory but ...

81. how can I trigger a job out of transaction?    forum.springsource.org

Hello, I want to trigger some jobs after the transaction is commited, how I can do? I try to use StepListenerSupport to do this, but all the after methods will be ...

82. Transaction-Available-Check: is this approach feasible?    forum.springsource.org

Transaction-Available-Check: is this approach feasible? Dear all We've introduced transactions in our environment and now I'd like to make sure, that there is always a transaction on all service-level method calls. ...

83. Transaction between several bundles ?    forum.springsource.org

OSGi doesn't change the semantics of your applications. Moreover, everything is inside the same VM so I can't see any reason why this cannot work. Give it a try and see ...

84. Spring JCA Transaction    forum.springsource.org

Hello, In order to connect to an EIS ,i am using a JCA connector ,the Jar is delivered by the client.The transaction are manager in the client Side, so it is ...

85. Transactions with temp tables    forum.springsource.org

Transactions with temp tables Hi, We are using spring annotation based transactions (2.5.5) with ibatis on top of SQLServer with dbcp connection pooling. We had to have two DAO methods, one ...

86. Transactions ... that's all or do I need to modify my code ?    forum.springsource.org

Hi all, I need to use transactions inside Spring, I have taken some input from "Manning Spring in Action" book. My simple code is in attach ... just one aspect isn't ...

87. EndPointInterceptor and Transaction    forum.springsource.org

EndPointInterceptor and Transaction Hello everybody. I'm currently working on a spring WS and my main mission was to add some security before the call of the webservice. To do that, i ...

88. Transaction not rolling back    forum.springsource.org

Dec 19th, 2008, 08:53 AM #1 tyrell View Profile View Forum Posts Private Message Junior Member Join Date Dec 2008 Posts 9 Transaction not rolling back Hello, I'm using Spring MVC ...

89. How to centralize pre/post action during a Transaction    forum.springsource.org

Hi Expert, I would try to centralize some actions during transaction begin and commit. e.g. During Begin, i would like to insert something in a table withint same transaction. and During ...

90. Transaction Management Error    forum.springsource.org

Transaction Management Error Hi, I am trying to configure Transaction Management with annotations. I have my service : Code: @Transactional public class SimpleJpaTechnologyManager implements TechnologyJpaManager { private TechnologyDao technologyDao; ... public ...

91. Transaction inconsistantly fails on foreign key constraint    forum.springsource.org

Transaction inconsistantly fails on foreign key constraint I have a Spring project using OpenJPA. I have a problem that occurs about 50% of the time on a foreign key constraint. Here ...

92. no need to call to call save or merge? (or, jee Transactions)    forum.springsource.org

no need to call to call save or merge? (or, jee Transactions) hi.. while i was playing around with hibernate and spring using a simple Person->orders object model, i suddenly noticed ...

93. where do i put my transactions?    forum.springsource.org

where do i put my transactions? hi.. i have the following main class which does this: Code: final FlowProcess f=(FlowProcess) ctx.getBean("flowProcess"); final PersonDao pDao =(PersonDao) ctx.getBean("personDao"); final ItemDao iDao =(ItemDao) ctx.getBean("itemDao"); ...

94. Transaction Management and starvation...    forum.springsource.org

Transaction Management and starvation... Hi at all, In my application (batch application) a have used a transaction management. In particular I have a class in witch a method that call another ...

95. Verifying Transaction Advice Execution    forum.springsource.org

Hi, I'm attempting to get Spring declarative transaction advice working. I've tried transferring the example in Ch. 9 to my code, however it seems the advice is not taking (I get ...

96. rollbackOnly and participating transactions    forum.springsource.org

rollbackOnly and participating transactions Lets say I have a "outer" transaction, which I have marked (programatically) as rollbackOnly, then another transaction ("inner") joins it, (i.e. it participates in the outer transaction). ...

97. @TransactionConfiguration - Suspending Transaction possible?    forum.springsource.org

Hi, Im testing my (Hibernate) DAOs with TestNG (extending AbstractTransactionalTestNGSpringContextTests) and using @TransactionConfiguration(defaultRollback = true). This works fine. Now I want to test if all properties are correctly initialized so no ...

98. How to handle this transaction scenario    forum.springsource.org

How to handle this transaction scenario I'm running into a problem where I get 2 events in at the same time. When I get a JobStateChange event in, I first check ...

99. Transactions are not starting    forum.springsource.org

Feb 17th, 2009, 08:12 AM #2 aheo View Profile View Forum Posts Private Message Junior Member Join Date Feb 2009 Posts 5 Hi all I'm making larger application and I found ...

100. Involving transactions in simple spring story    forum.springsource.org

Feb 18th, 2009, 04:05 PM #1 Glorfindel View Profile View Forum Posts Private Message Junior Member Join Date Feb 2009 Location Belgrade Posts 8 Involving transactions in simple spring story Let's ...