Hi all. I need to make a query using Hibernate from an
Action. I see that in HibernateTutorial in the "hs.js"
file it does something like:
var f = cocoon.getComponent(PersistenceFactory.ROLE);
hs = f.createSession();
cocoon.releaseComponent();
And lets the filter to finish the session.
I should do something like that in my action and close
the session explicity because after the session comes
an flowscript function that opens a new one. I would
like to use the Cocoon management of connections so i
wonder if it is possible instead of open an hibernate
session explicity.
I read in flowscript documentation that "Cocoon object
represents the current Cocoon Sitemap", but i dont
know how to access that object in the action. I search
on API but found nothing, even looking
ObjectModelHelper. I looked Cocoon Database Actions
section but is a different approach (without
hibernate).
Can anyone help me ? Thx. Excuse my english.
______________________________________________
LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]