cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <>
Subject [jira] [Commented] (CXF-3418) Transactional JAX-RS Service (Spring 3 + Hibernate 3)
Date Mon, 28 Mar 2011 10:48:05 GMT


Sergey Beryozkin commented on CXF-3418:

So, you have the following case.

public interface IContext { 
    @Context void setUriInfo(UriInfo uriInfo); 
    @Context void setMessageContext(MessageContext mc); 
    @Context void setServletContext(ServletContext sc); }

public class GenericRestServiceImpl implements IRestService, IContext {

public class GenericRestServiceImpl2 extends GenericRestServiceImpl {

and only MessageContext is not injected ?

Can you double check please ? Have you updated the model to reference the IRestService interface
only ?

> Transactional JAX-RS Service (Spring 3 + Hibernate 3)
> -----------------------------------------------------
>                 Key: CXF-3418
>                 URL:
>             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:

View raw message