Question
Need To Handle Exceptionat JMS MDB Listener Level
I'm getting below Exception in logs when message type is getting changed from source (from queue which they are listening) . So they want to trigger a alert(email) whenever there is a change in message type.
Exception:
com.pega.pegarules.pub.PRException: Expecting a BytesMessage, received a message of type: com.ibm.jms.JMSTextMessage
ERROR MESSAGES
Not Applicable
STEPS TO REPRODUCE
Want to trigger an alert(email) when ever there is a change in the message type in logs.
There is a way to notify whenever there is a exception at listener port level but of that user need to configure on more queue to get those failed message.
But in our case they want to get email whenever there is a exception at listener port level.
Just to clarify,
1.) you have a JMS MDB Listener set up against a queue and it is configured for BytesMessage.
2.) occasionally you see errors related to a JMSTextMessage message being placed on that same queue - even though the JMSType in the message header is FORMAT_BYTES.
3.) You want to generate email so that someone can intervene.
Are you sitting on WebSphere? Are there any advanced properties configured (E.g. for RFH2 header)?
I assume you are not looking for Pega to skip trying to handle this message (using MessageSelector)? You actually want Pega to consume it and generate email?