I'm doing a simple J2EE application that will interact with a database like Oracle and you know that a database can have multiple oracle schemas and that is the problem (because I do not know how to configure hibernat with multiple schemas :( because my application can handle multiple schemas . ​​is there a way to make the configuration file hibernat dynamic and can control it with jsp page . if any of you can help me I will be very grateful and thanks in advance

good day,

this scenario of configuring multiple schemas is like multiple database. So you have to define the multple session factories in your application. in your application, configure multiple session factiories in hibernate.cfg.xml.

Please let us know if you need any information on this

thanks for your replay , but can you explain to me I don't understand what you mean !