Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 90255 invoked from network); 28 Mar 2011 08:10:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Mar 2011 08:10:46 -0000 Received: (qmail 15232 invoked by uid 500); 28 Mar 2011 08:10:46 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 15208 invoked by uid 500); 28 Mar 2011 08:10:46 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 15200 invoked by uid 99); 28 Mar 2011 08:10:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Mar 2011 08:10:46 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Mar 2011 08:10:44 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 8D36E83256 for ; Mon, 28 Mar 2011 08:10:06 +0000 (UTC) Date: Mon, 28 Mar 2011 08:10:06 +0000 (UTC) From: "Ivan Vitoria (JIRA)" To: issues@cxf.apache.org Message-ID: <1585248990.16207.1301299806575.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <224152488.8731.1300985165708.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CXF-3418) Transactional JAX-RS Service (Spring 3 + Hibernate 3) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-3418?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13011951#comment-13011951 ] Ivan Vitoria commented on CXF-3418: ----------------------------------- Hi Sergey, It works, it's amazing! I've needed to add the other context elements because an exception was thrown. The new interface looks like this: public interface IContext { @Context void setUriInfo(UriInfo uriInfo); @Context void setMessageContext(MessageContext mc); @Context void setServletContext(ServletContext sc); } Many thanks, again. Best regards, Ivan > Transactional JAX-RS Service (Spring 3 + Hibernate 3) > ----------------------------------------------------- > > Key: CXF-3418 > URL: https://issues.apache.org/jira/browse/CXF-3418 > Project: CXF > Issue Type: Bug > Components: JAX-RS > Affects Versions: 2.3.2 > Reporter: Ivan Vitoria > Priority: Critical > Attachments: JaxrsTransactional.part1.rar, JaxrsTransactional.part2.rar > > > Hello, > I have some JAX-RS servers configured through Spring. Also, i'm using Hibernate DAOs and the OpenSessionInViewFilter of Spring-ORM. I have no problem when I add the @Transactional annotation to the DAO layer, but i would like to have the REST methods in the same transaction, so i've annoated the services. But I can't do it, neither annotating the interface nor the classes. A ServiceConstructionException is throwed as soon as I add the @Transactional to the service... > A sample NetBeans project is attached. > Thanks in advance > Ivan -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira