I've seen it, now I read it (excellent article :D )
Well but I'm getting a problem here that you did not described:
" Note, however, that the dependencies can only be "autowired" if
there is no ambiguity about which service point to use (outside the
scope of this article). " I'm getting the error:
Error building service TCRUD.produtoDAO: Unable to find constructor
applicable for autowiring. Use explicit constructor parameters.

<service-point id="MySession" interface="org.hibernate.Session">
    <invoke-factory
service-id="hivetranse.hibernate3.AnnotationSessionFactory"
model="singleton">
        <config file="hibernate.cfg.xml">
        </config>
    </invoke-factory>
</service-point>        

        
<service-point id="produto" interface="com.cs.model.persistence.BaseEntity">
        <create-instance class="com.cs.model.persistence.Produto" 
model="threaded"/>
</service-point>
        
<service-point id="produtoDAO" interface="com.cs.eai.dao.DAO">
        <invoke-factory model="singleton">
                <construct class="com.cs.eai.dao.HibernateGenericDAO">
                        <service>produto</service>
                        <service>MySession</service>
                </construct>
        </invoke-factory>
</service-point>

Could you give me a hint on this?

Thanks

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

Reply via email to