cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: CXF and Spring annotated transactions
Date Tue, 21 Aug 2007 19:21:33 GMT

José,

You will need to change the jaxws:endpoint to look something like:

<jaxws:endpoint id="myServiceEndpoint"
         implementor="#myServiceImpl"
         implementorClass="com.xx.MyServiceImpl"
         address="/MyService" />

The problem is that Spring doesn't pass a com.xx.MyServiceImpl into the 
jaxws:endpoint when you use the aop stuff.   Instead, it passes a proxy.   
We then call "getClass()" on it to get the class, which is then not the 
correct class and doesn't have the @WebService annotation on it and 
stuff like that.   If you specifically set the class above, we can grab 
the annotations and other information from that.

Dan



On Tuesday 21 August 2007, Juan José Vázquez Delgado wrote:
> Hi, guys!
>
> I have an application architecture with CXF + Spring + JPA +
> Hibernate. My goal is having transactional services with the
> @Transactional annotation. Although, when the application starts i get
> an parsing error. The relevant configuration includes this:
>
> <bean id="transactionManager" class="
> org.springframework.orm.jpa.JpaTransactionManager" />
>
> <tx:annotation-driven />
>
> <bean id="myServiceImpl"
>         class="com.xx.MyServiceImpl" />
>
> <jaxws:endpoint id="myServiceEndpoint"
>         implementor="#myServiceImpl"
>         address="/MyService" />
>
> @Transactional
> public interface MyService() {
>
> }
>
>
> Any ideas?
>
> Thanks a lot



-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194
daniel.kulp@iona.com
http://www.dankulp.com/blog

Mime
View raw message