Search code examples
jakarta-eejmswebsphereibm-mqmessage-driven-bean

MDB starts to consume messages before fully initialization of JNDI names


AS: Websphere 8.5.5

MQ impl: SIB

During application startup MDB starts to invoke onMessage method, which in turn invokes initialContext.lookup in order to find specific bean. Sometimes (during variety of startup iterations) it returns null instead of reference to bean object.

This behavior is nondeterministic: in some startup iterations bean's context has time for all JNDI names initialization due to more longer MDB initialization and respectively a pause in message consumption.

Is there any workaround or magic IBM key to resolve issue ?


Solution

  • So, as everyone "love's" Websphere, it was without a doubt an IBM bug. Sorry, i lied.... it was TWO bugs at the same time.