I looked through the tutorial and I see this file mentioned twice, but
it's for good reason.  The person time shows you how to register a
personDao bean using the GenericDaoHibernate class.  The 2nd shows you
how to do it with your own PersonDaoHibernate.  The entry in
hibernate.cfg.xml is in the first "Persistence" tutorial.

Hope this helps,

Matt

On 1/18/07, Ben Gill <[EMAIL PROTECTED]> wrote:
Hi,

Using basic-struts, the tutorial:
http://dev.appfuse.org/display/APF/Using+Hibernate

mentions adding 2 snippets of spring config.  I believe one is destined for
hibernate.cfg.xml and the other is for applicationContext.xml
but am not sure which is for which, as the tutorial says add both xml
snippets to applicationContext.xml file..

Create an applicationContext.xml file in src/main/webapp/WEB-INF and add the
following XML to it:


create src/main/webapp/WEB-INF/applicationContext.xml and
add the following to it:

Can someone advise on what the correct files are for each of the snippets?

Thanks



--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to