Aww! That's fantastic! Just moving <tx:annotation-driven/> from applicationContext to dispatcherContext and it working now! Thank's!
That's info from documentation was helpful for me:
Type: Posts; User: shoo; Keyword(s):
Aww! That's fantastic! Just moving <tx:annotation-driven/> from applicationContext to dispatcherContext and it working now! Thank's!
That's info from documentation was helpful for me:
I have a trouble, please help to resolve it!
Application context
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
...
Yeah, i know. I use it for testing transaction rollback.
I'm using that becouse like that was in tutorial. PreparedStatementCreator is bad practice? Or.. What should i use in this case?
Now...
In MessageService, method:
@Transactional(propagation = Propagation.REQUIRED)
public Message setMessage(String author, String text, Integer prev_id) {
final String sql =...
In my first Spring application, i'm tried to use transactions. I'm using JdbcTemplate and i'm have 2 tables: messages and pictures.
Method used for adding message, looks like:
1) updating messages...
In my first Spring application, i'm tried to use transactions. I'm using JdbcTemplate and i'm have 2 tables: messages and pictures.
Method used for adding message, looks like:
1) updating messages...