IBM Support

JR48892: CMVC 232985 - This APAR is to allow client to write custom code to handle cache invalidation

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • This iFix provides methods in a new Task Command to allow
    clients to write custom code to handle cache invalidation.
    

Local fix

Problem summary

  • USERS AFFECTED:
    WebSphere Commerce version 7 customers who have a need to
    customize how DynaCache invalidations are processed.
    
    PROBLEM ABSTRACT:
    This APAR is to allow client to write custom code to handle
    cache invalidation
    
    BUSINESS IMPACT:
    Client has no control over  invalidate cache
    
    RECOMMENDATION:
    

Problem conclusion

  • New DCInvalidationTaskCmd task command interface and
    DCInvalidationTaskCmdImpl task command implementation classes
    are provided.
    
    WebSphere Commerce internal code has been modified to call the
    new task command methods to issue invalidation ids to DynaCache.
    To customize the invalidation processing done in those methods,
    create a new task command (for example,
    MyDCInvalidationTaskCmdImpl) that extends from the
    DCInvalidationTaskCmdImpl task command implementation, and
    override the following methods (making sure to call the super
    class methods):
    
    performExecute() - This method is called once, just before the
    first DynaCache invalidation is issued by the WebSphere Commerce
    application.  Add custom initialization here, if required.
    
    issueInvalidation(DistributedMap aDistributedMap, String
    astrInvalidationId, boolean abWait) - Issues an invalidation id
    to a com.ibm.websphere.cache.DistributedMap object cache
    instance when the specified invalidation id is not null.  Add
    custom processing here, if required.
    
    issueInvalidation(com.ibm.wsspi.cache.Cache aCache, String
    astrInvalidationId, boolean abWait) - Issues an invalidation id
    to a com.ibm.wsspi.cache.Cache cache instance when the specified
    invalidation id is not null.  Add custom processing here, if
    required.
    
    issueInvalidation(com.ibm.websphere.cache.Cache aCache, String
    astrTemplateInvalidationId, boolean abWait) - Issues a template
    invalidation id to a com.ibm.websphere.cache.Cache cache
    instance when the specified invalidation id is not null.  Add
    custom processing here, if required.
    
    When abWait is true, then the DCInvalidationTaskCmdImpl method
    will not complete until the invalidation has occurred. If false,
    then the invalidation will occur in batch mode.
    
    To register a custom task command, add a row to the CMDREG
    database table, like this:
    
    insert into cmdreg (storeent_id, interfacename, classname)
    values (0, 'com.ibm.commerce.datatype.DCInvalidationTaskCmd',
    'com.mycompany.commerce.dcinvalidation.MyDCInvalidationTaskCmdIm
    pl' );
    
    Refer to the following links for more information about
    registering custom commands:
    
    http://pic.dhe.ibm.com/infocenter/wchelp/v7r0m0/topic/com.ibm.co
    mmerce.database.doc/database/cmdreg.htm
    http://pic.dhe.ibm.com/infocenter/wchelp/v7r0m0/topic/com.ibm.co
    mmerce.developer.tutorial.doc/tutorial/ttd24.htm
    
    -------------------------------------------------------------
    The latest available maintenance information can be obtained
    from the Recommended Fixes for WebSphere Commerce technote:
    http://www.ibm.com/support/docview.wss?rs=3046&uid=swg21261296
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR48892

  • Reported component name

    WC BUS EDITION

  • Reported component ID

    5724I3800

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-12-20

  • Closed date

    2014-05-02

  • Last modified date

    2014-05-02

  • 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

    WC BUS EDITION

  • Fixed component ID

    5724I3800

Applicable component levels

  • R700 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSYSYL","label":"WebSphere Commerce Enterprise"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
02 May 2014