Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Same Hibernate session, among RMI calls.?  RSS feed

Rajneesh K Rajput
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this possible to use same hibernate session over multiple RMI calls?

In my application, these RMI calls obviously involves various method invokes, using load balancer, over different servers, but all of these calls actually being used for originally in a single thread. RMI is configured using Spring.

Is there any configuration, which can help to use single hibernate session throughout all RMI calls, to avoid using separate db connections unnessarily.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!