christian wrote:
You have to learn about the different usages of the Session and database transactions. Don't open a Session for every single operation. Come back once you understand the concepts discussed on that page:
http://www.hibernate.org/168.html
Appreciate your advices, Christian
I know these code are very urgly, but i canno t change them for some reasons. The frame work cannot know how to start and end a session in a transaction. Actually, The framework is not very flexsible, it don't directly call the save method at all, also never use any transaction. I don't dare to change them. i only can change the save method, and choice ejb , jdbc, or hibernate.
So i want to know
1. Since it can work well at jdbcconnection-per-operation pattern, Why it cannot do the same work at hibernate session-per-operation pattern at some pc ?
2. About i mentionted the netcard problem, Could you give me some helpful explain ?
Could you help me ?