Hi,

I have app based on Jersey REST server and now I'm trying to use 
guice-persist. I could not use guice-persist as is, but I borrow some 
thoughts, esp. transaction control via @Transactional annotation and method 
interceptor. But I found some glitches, which are guice specific.

This method is OK and method interceptor is invoked:

@Transactional
@Path("/ok")
*public* String ok() { ... }


but for this one interceptor is not invoked:

@Transactional
@Path("/fail/{id}")
*public* String fail(@PathParam("id") String id) { ... }


So annotatated arguments prevents method intercepting. When I annotate 
arguments in interface and than implement this interface (which is 
thankfully supported in Jersey), it works. I think that this limitation is 
not specified in docu 
http://code.google.com/p/google-guice/wiki/AOP#Limitations

Can I see warnings or so for methods which Guice should intercept (i.e. 
matches binding matchers) and could not due limitations? It seems like 
lotery to me...

Thank you!

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-guice/-/5VbB2__-VyYJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en.

Reply via email to