IBM Support

PM55570: CDI APPLICATIONSCOPE STOPS WHEN INDIVIDUAL MODULE STOPS

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • CDI ApplicationScope stops when individual module stops
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  IBM WebSphere Application Server version    *
    *                  8.0 users of Contexts and Depenency         *
    *                  Injection (CDI) using @ApplicationScoped    *
    *                  variables.                                  *
    ****************************************************************
    * PROBLEM DESCRIPTION: Application scope ends when a           *
    *                      individual                              *
    *                      module(WAR) stops.                      *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    @ApplicationScoped variables go out of context when the first
    module of the application is stopped.
    

Problem conclusion

  • We have introduced a JVM system property that will allow
    @ApplicationScoped variables to retain state across module
    restarts. When a web module with a reference to an
    @ApplicationScoped bean is restarted the same instance of the
    bean exists i.e. state is retained across module restarts. This
    behavior is enabled by setting the following JVM system
    property
    Name:
    com.ibm.ws.webbeans.retainApplicationScopeAcrossModuleRestarts
    Value: true
    
    For details on how to set a JVM property, refer to the article
    "Java virtual machine custom properties" in the Information
    Center for your WebSphere Application Server version and
    operating system.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 8.0.0.4.  Please refer to the Recommended Updates
    page for delivery information:
    http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM55570

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-01-09

  • Closed date

    2012-02-01

  • Last modified date

    2012-02-01

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WEBSPHERE APP S

  • Fixed component ID

    5724J0800

Applicable component levels

  • R800 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
28 October 2021