I get the wrong org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager
when the method the follow is execute
Is there any way to execute the bean when the EntityManager will be open JPA EntityManager???. . … something with the annotation @DependsOn, I couldn´t solve the problem!
In the follow class “ActivemqMessageListener”, I try to use a listener with activeMq ,. . . . do you know why Persistence = null in the method onMessage ??? . . do you know how I could solve the problem?
I attach the classes “ActivemqMessageListener” and the config “ActiveMqConfig”… . thank a lot!!