Hibernate Lazy init exception in spring scheduled job
- by Noam Nevo
I have a spring scheduled job (@Scheduled) that sends emails from my system according to a list of recipients in the DB.
This method is annotated with the @Scheduled annotation and it invokes a method from another interface, the method in the interface is annotated with the @Transactional annotation.
Now, when i invoke the scheduled method…