Il giorno 18/giu/04, alle 10:19, Bertrand Delacretaz ha scritto:
Le 18 juin 04, � 09:07, Ugo Cei a �crit :...I am currently developing a version of the "petstore" block using Hibernate, XDoclet and Spring....
Yummy...do you think you will eventually be able to contribute it to the project?
I assume there's a licence problem with Hibernate though.
There's the license problem you mentioned, but actually, using Spring, it is effectively possible to decouple the persistence layer form the layers above it (business logic, presentation) to the point of having *NO* code that directly depends on Hibernate. That is, you don't need to implement Hibernate interfaces or import Hibernate packages.
At the moment, what I've done is structured as a Cocoon block, but there's a problem with user authentication. I've opted to use container-based authentication with Jetty's JDBC user realm, using the Cocoon-provided HSQL database. Unfortunately, Jetty wants to access the database upon startup, but HSQL does not start until Cocoon is started, so we have a little chicken&egg problem.
If we solve this problem, we can distribute the sample as a block. Or we could do a full web application that includes the necessary Cocoon infrastructure but otherwise stands alone. In any case, I was thinking about hosting it on cocoondev.org. This would give us the possibility to include Hibernate and not force users to download it separately. It would also avoid adding "Yet Another Petstore" to Cocoon, further bloating the download. I'd also like to avoid having yet another demo that we don't know how long it will be maintained and kept up to date.
Ugo
-- Ugo Cei - http://beblogging.com/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
