IBM Support

PM99129: INJECTION OF DATASOURCE INTO CDI BEAN DOES NOT WORK CORRECTLY

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The injection of data source only works if the resource
    reference binding is defined in the Enterprise JavaBean (EJB)
    module containing the EJB into which the CDI bean is injected.
    

Local fix

  • Customer has found that if he moves ibm-managed-beans-bnd.xml
    into EJB2 then everything works but it is unacceptable because
    they have to have one central EJB module and multiple auxiliary
    modules some with and some without data access and they can not
    define all resource references at the central module level.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  IBM WebSphere Application Server Liberty    *
    *                  Profile versions 8.0 and 8.5.5 users of     *
    *                  Contexts and Dependency Injection (CDI) and *
    *                  EJB.                                        *
    ****************************************************************
    * PROBLEM DESCRIPTION: CDI Injection across EJB modules        *
    *                      with resource bindings might not work.  *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    If a resource reference binding is defined in an EJB module
    that does not contain the EJB into which the CDI bean is
    injected, injection could fail.
    

Problem conclusion

  • The CDI container was updated to look across EJB modules for
    binding information.
    
    The following Java Virtual Machine custom property must be set
    to true to enable the new behavior:
    
    com.ibm.ws.webbeans.crossEjbModuleBindings(default:false)
    
    The fix for this APAR is currently targeted for inclusion in
    fix packs 8.0.0.8 and 8.5.5.3.  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

    PM99129

  • Reported component name

    LIBERTY PROFILE

  • Reported component ID

    5724J0814

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-10-15

  • Closed date

    2013-10-15

  • Last modified date

    2014-02-27

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

    PM91369

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

Fix information

  • Fixed component name

    LIBERTY PROFILE

  • Fixed component ID

    5724J0814

Applicable component levels

  • R850 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":"850","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
27 April 2022