-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: how to plug-in hibernate in struts , please explain the flow
PostPosted: Tue Dec 12, 2006 2:34 am 
Newbie

Joined: Tue Dec 12, 2006 2:27 am
Posts: 1
how to plug-in hibernate in struts , please explain the flow...?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 12, 2006 5:18 am 
Regular
Regular

Joined: Wed Mar 23, 2005 8:43 am
Posts: 105
Location: Moscow, Russia
What you mean by word "plug-in"? Using Hibernate with Struts has no differences from using Hibernate with any other web application or web framework. Simply put neccessary jars in classpath, create hibernate.cfg.xml file with configuration, map your classes and use it!

_________________
Best Regards


Top
 Profile  
 
 Post subject: Using Hibernate with STRUTS
PostPosted: Tue Dec 12, 2006 10:42 am 
Newbie

Joined: Mon Dec 11, 2006 10:43 am
Posts: 3
As stated above, there is no need or way to connect Hibernate and STRUTS. You cannot tell STRUTS to load Hibernate for you. These are two entirely different functions. You are confusing yourself by trying to think of these two things together.

I'm guessing you are trying to understand how to get Hibernate to initialize in a web application where you happen to be usiing STRUTS.

Put hibernate.cfg.xml into WEB-INF/classes
*.hbm.xml files go in the same dir as the class files.
Create a servlet to configure hibernate. Put an entry into web.xml that loads this servlet on start up.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.