While trying to strengthen my Transactional skills, I came across Hibernate's Transaction demarcation with plain JDBC. One of the points explained is that the Session is bound to the current thread (because it can't be bound to the Transaction) but it is scoped to the transaction.
In fact, I come across hibernate session's association with the current thread in many articles and it always bothers me.
What I want to know is what does it mean for the current session to be 'bound' to the current thread? For example when you say the session is 'scoped' with the transaction I understand that the (current)session will be flushed, closed when the transaction is over. So what does "binding" mean here? What does it mean in terms of multithreading? I don't want to make the question boring but I want to understand this association between the session and the thread clearly. Will be glad to read an article on this or have some working examples.
Thanks in advance.