Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

MDB listener does not read messages from queue

SA-85867

Summary

The JMS Message-Driven Bean (MDB) listener is configured and deployed onto the Websphere Application Server. While testing it through the JNDI server rule, user is able to enter messages onto the queue. The messages remain on the queue and are not consumed by the listener.


Error Messages


100[WebContainer:2][TABTHREAD1][][BEPSFND](essage.Rule_Connect_JMS.Action)ERROR an_host an_operator - Couldn't get messages from queue :javax.jms.IllegalStateException: Method stop not permitted 
javax.jms.IllegalStateException: Method stop not permitted 
at JMSCMUtils.methodNotPermittedException(JMSCMUtils.java:268)~[] 
at JMSConnectionHandle.checkRestrictedMethod(JMSConnectionHandle.java:866)~[] 
at JMSConnectionHandle.stop(JMSConnectionHandle.java:775)~[] 


Steps to Reproduce

Enter JMS Message through the JNDI server rule.


Root Cause



The JMS MDB listener is configured with Container Managed Transaction. This transaction type must use the XA database driver.

Resolution


Perform the following local-change:
  1. Disable the Container Managed Transaction
  2. Regenerate the MDB jar file
  3. Redeploy the new MDB jar in the Websphere Application Server

 

 

Published October 16, 2019 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us