I can read the current delivery count using javax.jms.Message.getIntProperty(“JMSXDeliveryCount”). I’m trying to read the current max retry setting. I configured it to be 5 using following configuration in jms-service.xml.
<attribute name="MaxDeliveryAttempts">5</attribute>
But when I try read it using
- javax.jms.Message.propertyExists(“dLQMaxResent”) JBoss
- javax.jms.Message.propertyExists(“MaxDeliveryAttempts”)
- javax.jms.Message.propertyExists(“DLQMaxResent”)
- javax.jms.Message.propertyExists(“MaxDeliveryCnt”) Oracle
All of the above return false. I’m using JBoss EAP 5.0.1 with jboss messaging.
Any suggestions on which property I should be looking for?
As @MaDa rightly says so, this is MBean configuration.
Using following code you can read any JMX MBean setting in JBoss envrionment.
e.g.
For this you will need to include jboss-jmx.jar in your maven dependencies.