Thursday, September 19, 2013

WebLogic: log JMS message body

Unfortunately the WebLogic console missed this option.

See also "Logging the Uniform Distributed Queue Message Body (Doc ID 1377584.1)"

the Oracle DOC gives only the manual workaround (hack! hack!).

with WLST:

moduleName = 'CommonAlertingJMSModule'
queueName = 'CommonAlertingQ'

edit()
startEdit()
cd '/JMSSystemResources/' + moduleName + '/JMSResource/' + moduleName + '/UniformDistributedQueues/' + queueName + '/MessageLoggingParams/' + queueName
cmo.setMessageLoggingFormat('%header%,%properties%,%body%')
save()
activate()



No comments: