Link to home
Start Free TrialLog in
Avatar of visu_nekk
visu_nekk

asked on

How to configure a single Hibernate SessionFactory for multiple web applications

I have n number of web applications talking to a single database using hibernate. I need to configure JBOSS in such a way that there will be single Hibernate SessionFactory and the web applications will use this SessionFactory to obtain Sessions. Which is the best optimal way to acheive this solution?
Avatar of ramazanyich
ramazanyich
Flag of Belgium image

everything depends in implementation of your web application. How do you call sessionfactory inside your web app? Do you use Spring? do you use EJB3 ?
for Spring there is a some discussion which is available at http://forum.springsource.org/archive/index.php/t-43521.html
Avatar of visu_nekk
visu_nekk

ASKER

We are using a combination of Struts with Hibernate.
ASKER CERTIFIED SOLUTION
Avatar of ramazanyich
ramazanyich
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial