guice @Transactional with dependency injection

92 views
Skip to first unread message

Viraj Jasani

unread,
Jun 25, 2019, 10:15:11 AM6/25/19
to google-guice
Hi,

I am using @Transactional for a public method, which is being invoked from the same class. This doesn't seem to be working fine.
However, when I shift this method to different class(@Singleton), which is injected as a dependency to call class, and then if I call the public Transactional method, then only the Transaction seems to be working.

Can someone please help me understand if this is expected? I would like to get a clarification because this is not available in wiki documentation.
Thanks in advance!

Thanks
Reply all
Reply to author
Forward
0 new messages