The application context is attached to the post.
To explain a little :
- a user connect to the server, I use the dao to check is user is present in database, I check password. If connection succeed, I use DAO to update last connexion time.
And now, after the migration with hibernate/spring, the first connexion works, but if I retry, it freeze when I use the DAO to update last connexion time.
=> it always freeze in AccountsDAO
The code is quite basic :
Code:
/**
* Either save() or update() the given instance, depending upon the value of its
* identifier property.
*/
public void saveOrUpdate(Object obj) {
getSessionFactory().getCurrentSession().saveOrUpdate(obj);
}
Here is the log of hibernate and spring in debug mode the first time I login : logFirstTry.txt
And the second time : logSecondTry.txt
nothing more after this.
I think I could try to see with mysqladministrator how many connexion are open but I don't know if would be helpfull.