Knowledge Base

Showing results for 
Search instead for 
Did you mean: 

How to write to a header on read only JMS Payload objects

To establish the correlation between tiers or applications, AppDynamics generates a "singularity header" which is passed to a downstream node.


In some cases, the JMS payload is not allowed to write any data to the JMS message, correlation behavior is impacted, and the following error message appears in logs.


17 Jul 2017 12:49:03,065 ERROR ReadonlyRewriting_JMSMessageReflector - MessageNotWriteableException caught while setting transaction header. To attempt modification of the read-only JMS message, add the object's package (org.apache.activemq.ra) to the jms-packages-allowed-for-rewriting node property. 


To resolve this issue, create a node property jms-packages-allowed-for-rewriting and change the JMS package name to the value of this property. This will ensure that JMS allows writing to the singularity header on JMS payload objects.




Property Name : jms-packages-allowed-for-rewriting
Type: String
Value :org.apache.activemq.ra





Version history
Revision #:
2 of 2
Last update:
‎07-27-2017 10:55 AM
Updated by:
0 Kudos