com.bea.wlrt.adapter.defaultprovider
Interface MessageConverter


public interface MessageConverter

This interface defines the contract for a message converter to convert javax.jms.Message to events. The implementation of this interface needs to be aware of an event type definition so that events of that type can be created from the javax.jms.Message.

The implementation of this interface should parse a javax.jms.Message, introspect the registered event definition, create events in accordance with the event definition and populate the event property values with data read from the javax.jms.Message.


Method Summary
 Map fromMessage(String eventType, Map params, Message message)
          This method parses a javax.jms.Message and returns a Map whose keys represent the event properties(introspected from event type) and values read from the javax.jms.Message
 

Method Detail

fromMessage

public Map fromMessage(String eventType,
                       Map params,
                       Message message)
                throws MessageFormatException
This method parses a javax.jms.Message and returns a Map whose keys represent the event properties(introspected from event type) and values read from the javax.jms.Message

Parameters:
eventType - - String event type
params - - Map extra parameters that maybe required to convert a Message to event
message - - Message a JMS message
Returns:
- Map A map whose event properties(introspected from event type) are filled with values. These values maybe data from the jms Message.
Throws:
MessageFormatException -