• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

session,transaction are single threaded,what does it mean by single threaded?

 
sudheer kiran
Ranch Hand
Posts: 237
Firefox Browser MyEclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
they say session and transaction are single threaded,what does it mean by.
is threrad safe?

can you get several session objects?

can you get several transaction objects?

 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The transaction in Single Thread does just that, it runs as a single thread on the JVM. Alternately, you could pass on to a EJB container or something to manage transactions instead.

You create many sessions in your applications, but typically one session per request-response cycle. That's a pretty oversimplified statement, but it holds true pretty good in most introductory scenarios.

-Cameron McKenzie
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic