Hi all, If the representations that you return need to access data that are part of your transaction, the Filter approach doesn't work as explained in this thread. You need to use the ConnectorService facility recently enhanced in Restlet 1.2 (SVN trunk).
"Managing a JPA/Hibernate session" http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=11824 79 Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com -----Message d'origine----- De : limss [mailto:[email protected]] Envoyé : vendredi 27 février 2009 02:30 À : [email protected] Objet : Re: Demarcation Example I am putting the transaction in the Filter beforeHandler() { beginTransaction } afterHandler() { commit/rollback transaction } May I know what is the most recommended approach ? -- View this message in context: http://n2.nabble.com/Demarcation-Example-tp2389911p2393346.html Sent from the Restlet Discuss mailing list archive at Nabble.com. ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=12358 29 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1282373

