My application is deployed on Weblogic 10.3.5, i ran 2 scenarios:
- invoking 5000 times EJB (with transaction) that sends one message.
- invoking EJB (with transaction) that sends 5000 JMS messages.
the first scenario run smoothly but the second never ends, after 10 minutes OutOfMemory exception is dropped. I investigated the problem and i think it's happens because the messages are remain pending until the transaction is committed or rolled back.
More information:
- Delivery mode is non-persistent
- The session is auto acknowledged
Someone can recommend how i can send a massive number of JMS messages in one transaction?
Thanks in advance.