Dear Tapestry Users

We would like to integrate Tynamo's Resteasy module with the JPA
module (from Tapestry with Hibernate 4). The problem is, that we
cannot advise Tapestry to observe the @CommitAfter annotations for the
web service resources. The following doesn't work:

@Match("*Resource")
public static void adviseTransactions(HibernateTransactionAdvisor
advisor, MethodAdviceReceiver receiver)
{
        advisor.addTransactionCommitAdvice(receiver);
}

The Resteasy module uses the autobuild() method to create singletons
of the resource classes (without having interfaces).

Is it not possible to advise a service which has no interface?

Is there may be a better way integrate JPA with Resteasy?

Thanks in advance for your help!

Kind regards and happy easter

Thilo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to