Do you have the following in your hivemodule.xml? <contribution configuration-id="hivemind.ApplicationDefaults"> <default symbol="hivetranse.hibernate.DeferSessionClose" value="true"/> </contribution>
Ted Steen wrote:
Hi. This is a subset of my hivemodule.xml <service-point id="HibernateSession" interface="org.hibernate.Session"> <invoke-factory service-id="hivetranse.hibernate3.SessionFactory" model="singleton"> <config configuration-id="HibernateConfig" /> </invoke-factory> </service-point> <!-- Set up infrastructure:session as an alias for service:Session --> <contribution configuration-id="tapestry.Infrastructure"> <property name="hibernateSession" object="service:HibernateSession"/> </contribution> <service-point id="UserAccess" interface="IUserAccess"> <invoke-factory> <construct class="UserAccess"> <set-object property="session" value="infrastructure:hibernateSession" /> </construct> </invoke-factory> </service-point> <service-point id="EntryAccess" interface="IEntryAccess"> <invoke-factory> <construct class="EntryAccess"> <set-object property="session" value="infrastructure:hibernateSession" /> </construct> </invoke-factory> </service-point> Now, my question is, will all my dao objects share the same hibernateSession? I get org.hibernate.HibernateException: Illegal attempt to associate a collection with two open sessions and I suspect I get it because I have different sessions in my dao objects. :/ Thanks, /ted --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]