• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate session management across multiple applications.

 
Elijah Marshall
Greenhorn
Posts: 4
IntelliJ IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone tell me what type of configuration should be used in order to ensure that hibernate does not get 500 errors?

Here is the situation.
On a project that I am on we have 1 database that is being accessed by 3 different applications (A, B, C)
The 3 applications all share a core library for the User object and associations.
Scenario:
User loads into 3 different browser windows A, B, C
The user in any one of the applications modifies information in the User object or any of the associated objects and persists that to the database
The user reloads and or navigates in any of the other 2 applications a 500 error occurs because the information that is in the User session object does not exist in the database (I am assuming)

How do I tell Hibernate to never store in session certain object associations and to pull the information from the database every single time?
Please be specific as my experience with Hibernate is about 5 hours worth.

Greatly appreciate any help on this.
 
Vijitha Kumara
Bartender
Posts: 3953
21
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the CodeRanch!

The user in any one of the applications modifies information in the User object or any of the associated objects and persists that to the database...

What kind of information user modifies? Is this related to user's login information that you are having the problem? Can you provide more details (TellTheDetails)?

And all three applications share the information? Are they running in three different JVMs?
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!