Can someone explain me how this annotation can be used, and show me if possible some code using it.
I think it can help me in one of my development, but, because I can't find anything about this, I'm not really sure right now... In fact, my goal is to specify in a method - wrapped by an interceptor - either an instance of an class (Hibernate Session) or another depending on a context only known by the interceptor. To clarify, I'd like to use a "transaction interceptor", providing the "begin/commit /rollback" functions based on a specific instance of a session (provided by getCurrentSession()) only when some methods (update*, set*, ...) are called, AND with a "no transaction interceptor" for the get* methods of my service, provide another session object, without any "transaction aspect" to my DAO, and managing with my interceptor its life cycle... I don't know if I'm clear enough... but anyway, a simple sample of code regarding the @Current annotation would help me ! ;-) Thank you. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3949316#3949316 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3949316 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
