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

JMSTemplate setDeliveryPersistent(boolean deliveryPersistent) javadoc incorrect

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 3.2.7, 4.0.1
    • Component/s: JMS
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      The javadoc of the method tells me:

      "PERSISTENT" (1) or "NON_PERSISTENT" (2)

      Relying on javax.jms.DeliveryMode:

      static final int NON_PERSISTENT = 1;
      static final int PERSISTENT = 2;

      It may be confusing especially while using
      JMSTemplate.setDeliveryMode(int deliveryMode)

      Correct me if I am wrong.

      Thanks,
      Reidar

        Attachments

          Activity

            People

            Assignee:
            juergen.hoeller Juergen Hoeller
            Reporter:
            reidar Reidar Hörning
            Last updater:
            Spring Issues Spring Issues
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              3 years, 37 weeks, 1 day ago