Is it possible to externally configure database properties (via applicationContext-jdbc.xml and jdbc.properties perhaps), so that one and only one war file would on test server access test database...
Type: Posts; User: darko; Keyword(s):
Is it possible to externally configure database properties (via applicationContext-jdbc.xml and jdbc.properties perhaps), so that one and only one war file would on test server access test database...
Ok, I'm new (Spring) believer: for beginning using just class JdbcTemplate and transactions are working!!
Thanks for hint, but could you be more specific?! What is wrong with my approach, that I cannot get rollback?
public void storeOwnerPlain(Owner owner) throws SQLException {
String[] sql...
I'm sorry to report I was right: declarative tx management does not work for arbitrary JDBC strategy, one must be compliant with Spring's JDBC handling, that is using its API...
Yes, I was trying to do something in this direction. Nevertheless I was out of luck: definitely I managed to get my method in transaction, but there was no effect. Despite rollback (see log bellow)...
Perhaps I should clarify myself: I have done declarative tx management in web application via applicationContext.xml and applicationContext-jdbc.xml, but I don't know how to do this in command line...
Is it possible to implement declarative transaction management in non web apps - command line driven or Swing? Perhaps via some implementation of ApplicationContext interface?
ThankYou for any...