javaeetutorial
  1. javaeetutorial
  2. JAVAEETUTORIAL-57

Note on changing timeout element needs fixing

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 6.0.4
    • Fix Version/s: 6.0.7
    • Component/s: doc
    • Labels:
      None

      Description

      There's a Note just above the instructions for running timersession:

      http://docs.oracle.com/javaee/6/tutorial/doc/bnboy.html#bnbpf

      It tells people to edit domain.xml, which is not something we normally advise – they ought to use the admin console.

      It also tells them to change an element that doesn't seem to be in domain.xml any more, even. By default, all you see is

      <ejb-timer-service></ejb-timer-service>

      After I changed the default with the admin console, the following appears:

      <ejb-timer-service minimum-delivery-interval-in-millis="500"></ejb-timer-service>

      This indicates that minimum-delivery-interval-in-millis is an attribute of ejb-timer-service, not an element. I don't know how long this has been the case.

      The note should be corrected.

        Activity

        Hide
        Ian Evans added a comment -

        There is some contradiction in the settings for minimum-delivery-interval-in-millis. According to glassfish/dtds/sun-domain_1_3.dtd the default value is 7,000 milliseconds:
        <!ATTLIST ejb-timer-service
        minimum-delivery-interval-in-millis CDATA "7000"
        max-redeliveries CDATA "1"
        timer-datasource CDATA #IMPLIED
        redelivery-interval-internal-in-millis CDATA "5000">

        But if you go to the Admin Console, in Configurations -> default-config -> EJB Container in the EJB Timer Service tab, the default Minimum Delivery Interval is 1,000 milliseconds.

        I'm going to check with Marina to find out what the actual default is.

        Show
        Ian Evans added a comment - There is some contradiction in the settings for minimum-delivery-interval-in-millis. According to glassfish/dtds/sun-domain_1_3.dtd the default value is 7,000 milliseconds: <!ATTLIST ejb-timer-service minimum-delivery-interval-in-millis CDATA "7000" max-redeliveries CDATA "1" timer-datasource CDATA #IMPLIED redelivery-interval-internal-in-millis CDATA "5000"> But if you go to the Admin Console, in Configurations -> default-config -> EJB Container in the EJB Timer Service tab, the default Minimum Delivery Interval is 1,000 milliseconds. I'm going to check with Marina to find out what the actual default is.
        Hide
        Ian Evans added a comment -

        BTW, I think this Note was added before the Admin Console exposed the Timer Service's settings. I'll update the Note to tell users to use the Admin Console.

        Show
        Ian Evans added a comment - BTW, I think this Note was added before the Admin Console exposed the Timer Service's settings. I'll update the Note to tell users to use the Admin Console.
        Hide
        Ian Evans added a comment -

        Marina confirmed that the value is now 1000. It's possible the DTD has the old value, and that's a bug against GlassFish.

        Show
        Ian Evans added a comment - Marina confirmed that the value is now 1000. It's possible the DTD has the old value, and that's a bug against GlassFish.
        Hide
        Ian Evans added a comment -

        Fixed in source, will appear in the next update, with GlassFish 3.1.2.

        Show
        Ian Evans added a comment - Fixed in source, will appear in the next update, with GlassFish 3.1.2.

          People

          • Assignee:
            Ian Evans
            Reporter:
            Kim Haase
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: