Thank you very much Jonathan,
It looks like you're using tapestry-hibernate as well as tapestry-spring.
I've done a bunch of 2+ database stuff using tapestry-spring + hibernate,
and I've done single-db stuff using tapestry-hibernate, but I've never mixed
hibernate configuration methods.
Neither had I - but I made the fatal mistake of not removing the
tapestry-hibernate jars from my project and POM. Thank you for
providing the hint!
Get rid of tapestry-hibernate.
Your basic hibernate setup in Spring is fine. Do the second the same way.
You will need to explicitly wire in your SessionFactories, rather than rely
on auto-wiring. A template helps out (sample to follow) .
Thanks for this.
You will not be able to @Inject your SessionFactories directly into Tapestry
pages or services (duplicate service error).
Ok, so how can I access my session factories if I can't inject them?
Where can I obtain the session factory instance - I'm afraid my
knowledge of Spring is not very good.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org