Initializing Hibernate

23 views
Skip to first unread message

Blake

unread,
Dec 24, 2011, 12:16:18 PM12/24/11
to Google Web Toolkit
Greetings,

I want to use Hibernate with GWT. Hibernate (as well as other things
I have) need to be initialized once when the application starts. I
know how to do this with a regular Web app (startup listener) but I
don't know where or how to do that with GWT. I need someplace to put
code that will be run one when the app starts up. Your help is
greatly appreciated.

Blake McBride

Ed

unread,
Dec 25, 2011, 8:05:56 AM12/25/11
to google-we...@googlegroups.com
There exists many posts on this subject. Please search in the forum and on the web.

Paul Robinson

unread,
Dec 27, 2011, 7:38:47 AM12/27/11
to google-we...@googlegroups.com
This really depends on how you set up your server, but you will probably have a servlet that is used for communication with your GWT client. So you can put your initialization code in your servlet's init() method.

HTH
Paul

Reply all
Reply to author
Forward
0 new messages