How to change Hibernate schema at run time

I have A requirement where the current schema to be used is stored in db table;(schema_a or schema_b).

The application is loaded with default schema Now when the data in table is updated to B I want to consider all jpa query to use schema_b without any down time at server.

You can use schema-based multitenancy. Check out the User Guide for more details.