Why cant we use @Transactional for static methods to manage the transactions in my spring Project ?
@Transactional
@Transactional works well for non stati
If you're using AspectJ, here's a simple, albeit ugly, workaround:
public static void doWhatever(final String param) { new Runnable() { @Transactional public void run() { // do whatever in transaction... } }.run(); }