Hi!
I'm trying to setup hivetranse+tapestry here and i have configured
hivemind.xml like this:
-------------------------------
<implementation
service-id="hivetranse.hibernate3.SessionFactoryBuilder">
<invoke-factory model="primitive">
<construct
class="net.sourceforge.hivetranse.transaction.hibernate3.SessionFactoryBuilderImpl">
<log/>
</construct>
</invoke-factory>
</implementation>
<service-point id="HibernateSession" interface="org.hibernate.Session">
<invoke-factory
service-id="hivetranse.hibernate3.SessionFactory"
model="singleton">
<!-- config file="hibernate-config.xml">
<property name="hibernate.connection.password"
value="${password}"/>
</config -->
</invoke-factory>
</service-point>
<contribution configuration-id="hivetranse.core.TransactionDefaults">
<defaults>
<exception name="java.lang.Throwable" rollback="true" />
<method pattern="*" demarcation="Supports" />
</defaults>
</contribution>
<service-point id="BlaskanManager"
interface="se.liu.studorg.blaskan.web.BlaskanManager">
<invoke-factory>
<construct
class="se.liu.studorg.blaskan.web.BlaskanManager">
<!-- service>HibernateSession</service -->
</construct>
</invoke-factory>
<!-- interceptor
service-id="hivetranse.core.TransactionInterceptor">
<method pattern="*" demarcation="Required"/>
</interceptor -->
</service-point>
<!-- contribution configuration-id="hivemind.EagerLoad">
<load service-id="HibernateSession" />
</contribution -->
-------------------------------
Now the problem is that when i try to get the service "BlaskanManager"
(using @InjectObject("service:se.liu.studorg.blaskan.web.BlaskanManager"))
i get this error:
Error at context:/WEB-INF/hivemodule.xml, line 38, column 87:
Parameters to service implementation factory
hivetranse.hibernate3.SessionFactory contains no contributions but
expects exactly one contribution.
I can't figure out why and how I should contribute this thing.
Thanks!
/ted
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]