Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-2770

ActiveMQ dynamic producer not destroyed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 8.0.0-Final, 8.0.1
    • 8.0.5
    • TomEE Core Server
    • None

    Description

      Hello,

      In an stateless EJB, I inject JMSContext (working) and in a method, I have the following code:

          jmsContext.createProducer().send(messageQueue, jmsContext.createTextMessage("Test"));

      The issue I have is that each time I send a text message a DynamicProducer is created which could be the root cause of a memory leak.

      I don’t get that because, according to the JMS 2.0 specification, the JMSContext injected has a Transaction scope => this mean that after the end of the method, the JMSContext should be closed so that the dynamic producer: this is not I am seing

       

      Best Regards.

      Attachments

        Activity

          People

            Unassigned Unassigned
            fcourtau François Courtault
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: