tags:

views:

79

answers:

2

if client updates hibernate database ,then how can the server access the updated data at that moment without restarting server?

A: 

The client has to commit/close the transaction/connection.

BalusC
A: 

In usual (three-tier) client-server system all database operations are handled by the server only. Clients send messages, the business layer picks them up and uses the persistance layer to create, read, update or delete data.

So in this scenario, the server is always able to access updated data just because the server itself did the update.

Andreas_D
I have more the impression that the OP was asking the question the wrong way. In this case he is doing exactly what you're describing, but he didn't see the updated data using some admin tool and he learnt that this was only visible after restarting the server. This simply means that the client hasn't committed the transaction/connection at all. The OP plain assumed that restarting was the "normal" solution and was asking for other ways instead of elaborating the whole problem.
BalusC