Hi,
I wrote a simple Jersey REST service with spring and hibernate.
All work fine before I add transaction management with aop.
I just add :
<tx:advice id="txAdvice" transaction-manager="transactionManager">
<tx:attributes>
<tx:method name="post"/>
<tx:method name="*" read-only="true"/>
</tx:attributes>
</tx:advice>
<aop:config>
<aop:pointcut id="fooServiceOperation" expression="execution(*
com.me.service.*.*(..))"/>
<aop:advisor advice-ref="txAdvice" pointcut-ref="fooServiceOperation"/>
</aop:config>
And now I can't use my service :(
HTTP ERROR: 404
Not Found
RequestURI=/myproject/resources/myservice/
Services outside the pointcut work.
How do you configure your transaction ? Have you also some trouble
with Jersey and AOP ?
Thanks
Samuel