This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
Is there a good way to have Hibernate init itself with a pure JSF app. Right now I've been using servlets + JSFs. I can easily configure one servlet to load and init the session factory on load as set by the web.xml <load-on-startup> and an override to the servlets init().
I just don't feel that overiding the FacesServlet's init is the way to go here. Any suggestions when the only servlet in my app is the FacesServlet???
Don't put too much importance on the fact that you're using JSF. There's not that much magic there. The old tried-and-true techniques still can generally be used.
On the other hand, JSF does make it easier to tie some things together. Specifically, you can construct an application-scope bean that manages Hibernate and init things that way.
I'm using JDO, which has an architecture very similar to Hibernate's, plus I'm using Spring. Which has turned out pretty well. I use a similar technique, plus some "magic glue" that injects the Spring Beans into the JSF bean management process.
Customer surveys are for companies who didn't pay proper attention to begin with.