javaeetutorial
  1. javaeetutorial
  2. JAVAEETUTORIAL-152

6000 milliseconds are 6 seconds, not 1 minute.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 6.0.8
    • Fix Version/s: None
    • Component/s: doc
    • Labels:
      None

      Description

      Hello

      In the Java EE Tutorial EJB Chapter on Timers, we find the following text:

      -----------

      The following code sets a programmatic timer that will expire in 1 minute (6,000 milliseconds):

      long duration = 6000;
      Timer timer =
      timerService.createSingleActionTimer(duration, new TimerConfig());

      -----------

      I believe 6000 milliseconds is 6 seconds, not 60 seconds.

        Activity

        Hide
        Ian Evans added a comment -

        Updated source file. Fix will appear in the EE 7 Tutorial.

        Show
        Ian Evans added a comment - Updated source file. Fix will appear in the EE 7 Tutorial.

          People

          • Assignee:
            Ian Evans
            Reporter:
            swiss-chris
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 1 minute
              1m
              Remaining:
              Remaining Estimate - 1 minute
              1m
              Logged:
              Time Spent - Not Specified
              Not Specified