> Hi!Hi again,
>If you're talking about Spring beansYes I am
>Are you sure you used all the XML namespaces correctly?Could you please 
>elaborate on this a little?

Hmm that is very strange. Did you use the OpenSessionInView filter as well? Do 
you think that has anything to do with it? Do i have to set the <context-param> 
tapestry.use-external-spring-context to true? 

I'm going to start a clean project and try it again. Maybe it is something in 
my project configuration. I'll let you know how it goes.

Thanks,Jeshurun

--- On Thu, 10/7/10, Thiago H. de Paula Figueiredo <thiag...@gmail.com> wrote:

From: Thiago H. de Paula Figueiredo <thiag...@gmail.com>
Subject: Re: @Transactional annotation driven transactions in injected services 
- Proxy not created
To: "Tapestry users" <users@tapestry.apache.org>
Received: Thursday, October 7, 2010, 1:53 PM

On Thu, 07 Oct 2010 15:34:36 -0300, Jeshurun Daniel <sjeshu...@yahoo.ca> wrote:

> Hi Thiago,

Hi!

> Thanks for the quick reply. I know this is the pre-spring 2.0 way of doing 
> things and <tx:annotation-driven> is the way to go, which was is my question. 
> When i do things the old way, they work fine, but when I use 
> <tx:annotation-driven>, it doesn't work, the proxy never gets created for the 
> service class.

If you're talking about Spring beans, that's very strange. Are you sure you 
used all the XML namespaces correctly? If you're talking about Tapestry-IoC 
services, the Spring @Transactional doesn't reach there, just objects 
instantiated by Spring itself.

> I was wondering if it had something to do with the way I was injecting the 
> service into my page class, or the way Spring's applicationcontext is created 
> in Tapestry (maybe it needs additional configuration to support 
> annotation-driven transactions), which is why I posted it here.

I've used Spring beans with @Transactional and <tx-annotation-driven> and 
@Inject'ing them in Tapestry pages and Tapestry-IoC services with no problems.

--Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and 
instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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



Reply via email to