Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-11950

CachedMessageProducer does not support all JMS 2.0 MessageProducer methods

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 4.0.5
    • Fix Version/s: 4.0.6, 4.1 RC1
    • Component/s: None
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      SPR-11949 fixes CachedMessageProducer so that Jms2MessageProducerInvocationHandler properly delegates calls to CachedMessageProducer.this.

      However, only 2 out of the 4 new methods are supported that exist in the JMS 2.0 MessageProducer interface.

      The following 2 methods are not supported by the proxy:

      send(Message message, int deliveryMode, int priority, long timeToLive, CompletionListener completionListener)

      send(Destination destination, Message message, int deliveryMode, int priority, long timeToLive, CompletionListener completionListener)

      For example, when attempting to execute one of these methods the following error occurs:

      java.lang.AbstractMethodError: org.springframework.jms.connection.CachedMessageProducer.send(Ljavax/jms/Destination;Ljavax/jms/Message;IIJLjavax/jms/CompletionListener;)V
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.springframework.jms.connection.CachedMessageProducer$Jms2MessageProducerInvocationHandler.invoke(CachedMessageProducer.java:287)
      .......

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              snicoll St├ęphane Nicoll
              Reporter:
              chris8204 Christopher Shannon
              Last updater:
              Spring Issues Spring Issues
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 31 weeks, 3 days ago