I am using EJB in order to take advantages of:
Concurrent (instead of creating 2 threads, I divided the work into 2 EJB beans).
Pooling (I use stateless EJB a lot and I love the idea that the pool contains a specific number of bean). This way, I am not afraid of running out of memory. Memory usage is more predictable).
Asynchronous processing (all I need is just an annotation).
Well, the problem is I am using it with MongoDB so I don't need any transaction. I can use @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED) and @TransactionAttribute(TransactionAttributeType.NEVER) annotations but... it means I must specify it everywhere?
Is there anyway to disable EJB transaction by default?