1 Reply Latest reply: Jun 17, 2010 2:15 PM by user736637 RSS

    Lack of information in JMS based notification message

    user736637
      Hello,

      I have configured Watch for server log and related JMS Message Notification.

      However, I get only a text like "MapMessage[ID:<589306.1276727319522.0>]" in the JMS message text.

      How can I get the original log message by that ID or the JMS message's text can be extended with content WatchData attribute?

      Very appreciate any help or direction to place where I can read about it.

      Thanks,
      Yuriy
        • 1. Re: Lack of information in JMS based notification message
          user736637
          I have figured out what is going on.

          WLDF notification is written to JMS in the format that WLS Administrative Console can not read it.
          However, when I export message to XML I can see all information that I need:

          ------
          <?xml version="1.0" encoding="UTF-8"?>
          <JMSMessageExport>
          <mes:WLJMSMessage xmlns:mes="http://www.bea.com/WLS/JMS/Message">
          <mes:Header>
          <mes:JMSMessageID>ID:&lt;589306.1276788240914.0></mes:JMSMessageID>
          <mes:JMSDeliveryMode>PERSISTENT</mes:JMSDeliveryMode>
          <mes:JMSExpiration>0</mes:JMSExpiration>
          <mes:JMSPriority>4</mes:JMSPriority>
          <mes:JMSRedelivered>false</mes:JMSRedelivered>
          <mes:JMSTimestamp>1276788240914</mes:JMSTimestamp>
          <mes:Properties>
          <mes:property name="JMSXDeliveryCount">
          <mes:Int>0</mes:Int>
          </mes:property>
          </mes:Properties>
          </mes:Header>
          <mes:Body>
          <mes:Map>
          <mes:name-value name="WatchAlarmResetPeriod">
          <mes:String>60000</mes:String>
          </mes:name-value>
          <mes:name-value name="WatchSeverityLevel">
          <mes:String>Notice</mes:String>
          </mes:name-value>
          <mes:name-value name="WatchRule">
          <mes:String>(SUBSYSTEM = 'ousgg.valves')</mes:String>
          </mes:name-value>
          <mes:name-value name="WatchDomainName">
          <mes:String>my_domain</mes:String>
          </mes:name-value>
          <mes:name-value name="WatchData">
          <mes:String>DATE = Jun 17, 2010 11:24:00 AM EDT SERVER = AdminServer MESSAGE = Invalid record ...</mes:String>
          </mes:name-value>
          <mes:name-value name="JMSNotificationName">
          <mes:String>OUSGG-FileValves-Fail-JMS</mes:String>
          </mes:name-value>
          <mes:name-value name="WatchAlarmType">
          <mes:String>None</mes:String>
          </mes:name-value>
          <mes:name-value name="WatchRuleType">
          <mes:String>Log</mes:String>
          </mes:name-value>
          <mes:name-value name="WatchName">
          <mes:String>OUSGG-FileValves</mes:String>
          </mes:name-value>
          <mes:name-value name="WatchServerName">
          <mes:String>AdminServer</mes:String>
          </mes:name-value>
          <mes:name-value name="WatchTime">
          <mes:String>Jun 17, 2010 11:24:00 AM EDT</mes:String>
          </mes:name-value>
          </mes:Map>
          </mes:Body>
          </mes:WLJMSMessage>
          </JMSMessageExport>
          ------

          Does anybody know what format the notification is written in?
          I'm trying to read it via JMS transport in OSB and it throwing errors no matter what "Request Message Type" I use:
          ...
          Unexpected type of message received: weblogic.jms.common.MapMessageImpl
          ...

          Thanks,
          Yuriy

          Edited by: user736637 on Jun 17, 2010 12:15 PM