Frontend for Hibernate and SQL 2008 Connecting via JSP or JS

I am working on an application that uses GWT as front end and Hibernate 4.0 Framework. I am using SQL 2008 (R2). My application is purely DB Driven. And the application will run on several portals simultaneously with another database. Right now, the problem I am facing is that I have to deploy as many wars as the database has for each Portal. Is there a way with Hibernate to make it customizable? Means After loading my home page after entering the db name , db username and db password, it connects to the database.

I would also like to notice that my Homepage is loading in JSP . And after logging in, he calls the GWT access point .

+4
source share
1 answer

As @ToddMurray comments, you must use a custom JNDI data source. This is the preferred way to work with containers such as JBoss. See here for an example configuration.

Another way is with the Hibernate properties: read the documentation here .

+1
source

All Articles