Chris Lewis wrote: > Your "AppModule" is created with the same name used in web.xml (as Robin > pointed out). By default its AppModule.java, as created by the > quickstart archetype. You should find that to use Hibernate you need > only to add it, annotations, and tapestry-hibernate to your pom.xml. > After that you need only to @Ineject Session instances into > classes/components/pages where you want to use it. For the record, I did > a test with entities in a different package (not *.entities) and was > able to use Hibernate fine. This is because the tapestry-hibernate > module auto-loads (and maganges) sessions based on hibernate.hbm.xml, > which also is responsible for loading entities (unless you configure via > another method). I did not need to contribute as the documentation > suggested.
Thanks for your help: I'd forgotten that the archetype had made the "services" directory. I had to comment out some references to org.apache.tapestry.ioc.ServiceBinder which wouldn't compile, but otherwise it's all good. I think it didn't work automatically for me, since almost all of my Hibernate configuration is done programmatically rather than via the hibernate.cfg.xml file - but thanks for the suggestion anyway! Cheers, Andy -- Andy Buckley: CEDAR @ IPPP, Durham Work: www.cedar.ac.uk www.insectnation.org --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]