jms-spec
  1. jms-spec
  2. JMS_SPEC-122

Typos in javadocs for ConnectionFactory.createContext

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: JMS 2.0 rev A
    • Labels:
      None

      Description

      1. There's a typo in the javadocs for ConnectionFactory.createContext(int sessionMode)

      In the paragraph "In a Java EE web or EJB container, when there is an active JTA transaction in progress: ", change:

      Since the argument is ignored, developers are recommended to use createSession(), which has no arguments, instead of this method.

      to:

      Since the argument is ignored, developers are recommended to use createContext(), which has no arguments, instead of this method.

      2. There's a typo in the javadocs for ConectionFactory.createContext(String userName, String password, int sessionMode):

      In the paragraph "In a Java EE web or EJB container, when there is an active JTA transaction in progress: ", change:

      Since the argument is ignored, developers are recommended to use createSession(), which has no sessionMode parameter, instead of this method.

      to:

      Since the argument is ignored, developers are recommended to use createContext(String userName, String password), which has no sessionMode parameter, instead of this method.

        Activity

          People

          • Assignee:
            Nigel Deakin
            Reporter:
            Nigel Deakin
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: