cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gentry, Michael \(Contractor\)" <>
Subject RE: accessing cayenne sessions
Date Tue, 04 Apr 2006 14:15:25 GMT
First off, which version of Tapestry are you using?  And what version of

I've used Cayenne with Tapestry 3 and 4 and store my Cayenne DataContext
in the session.  The session handling has changed a bit between T3 and
T4, though (at least if you don't want deprecation warnings littering
your code), but the concept still works.  For example, one of my
listener methods (on an "Update" button) does:

public void update()

In WebObjects it would've been

I've not used JBoss for development, though.  I develop using Jetty and
deploy on Tomcat.

I'm not super-knowledgeable on Hibernate, but Cayenne is much more
EOF-like.  If you like what EOF does for the most part, Cayenne is a
good choice.


-----Original Message-----
From: Cyp her [] 
Sent: Tuesday, April 04, 2006 9:52 AM
Subject: accessing cayenne sessions


I am a newbie to Cayenne but I have been developing with WebObjects for
few years and though I would try something open source. I have been
a few articles on getting the DataContext namely this one
but it 
still leaves me a little bit confused.

My set up is Cayenne with Tapestry deployed to JBoss using Eclipse as
development platform. So my questions are

* What is the best way of retrieving the session context (DataContext)
on a 
given page and tracking the changes over a workflow and eventually 
committing the changes or discarding them?

* Can I do the same using Tapestry to achieve the same results i.e. are 
there any Tapestry calls for getting the Session

* Are there any convenient methods for accessing the Session like in 
WebObjects where there is a session class in the application?

* I have read some people opt to use Tapestry, Spring and Hibernate.
are the advantages if there are any and can you use Tapestry, Spring and


Thank you very much for your help and apologies if all the answersw are 
somewhere in this mailing list.


Are you using the latest version of MSN Messenger? Download MSN
7.5 today!

View raw message