Hi, 

You can use UnitOfWorkAwareProxyFactory 
<https://github.com/dropwizard/dropwizard/blob/master/dropwizard-hibernate/src/main/java/io/dropwizard/hibernate/UnitOfWorkAwareProxyFactory.java>.
 
It's designed to work outside of Jersey, and uses AspectJ to generate a 
proxy around a method with a @UnitOfWork annotation. It's not an ideal 
solution, but I have seen many people who successfully used it in 
authenticators which are not part of the Jersey lifecycle.

Artem   

-- 
You received this message because you are subscribed to the Google Groups 
"dropwizard-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dropwizard-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to