XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Obsolete
    • Icon: Major Major
    • No Release
    • JBossAS-4.2.3.GA
    • JCA service
    • None

      An undocmentated feature has been added to the jms rar in 4.2.3
      "forceClearOnShutdown".

      Sadly it doesn't work properly. This needs fixing, documentating and testing.

      It should also be made the default since we don't want to wait forever when we stop an MDB.
      If an MDB doesn't shutdown in the time then we should log a warning.

      Discussion from the mailing list:

      "
      c) forceClearOnShutdown, et. al.

      The idea looks good, but the implementation is rubbish.
      It shows a fundamental misunderstooding on how the pool works.

      The notification happens once for each session that ends
      (and hence so does your loop).

      In practice with the default config, it will leave
      the loop after the first session ends (almost immediately) when in the
      default config there are still 14 other sessions to go.

      A 1 second default wait is also unrealistic. Many people have MDBs
      that take longer than this to process something.

      In fact, this should be the default behaviour (but with different
      configuration). Nothing should wait forever!

      The defaults should be specified in conf/standardjboss.xml
      and the ejb3 equivalent aop interceptors file such that
      users can easily change them.
      "

              Unassigned Unassigned
              adrian.brock Adrian Brock (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: