biz.hammurapi.jms.adapter
Interface Converter

All Known Implementing Classes:
DomConverter, NopConverter, ObjectMessageConverter, SimpleXmlConverter, StylingXmlBeansConverter, StylingXmlConverter, XmlBeansConverter

public interface Converter

Binding components shall implement this interface.

Author:
Pavel

Method Summary
 javax.jms.Message convert(java.lang.Exception e, javax.jms.Session session, java.util.Map properties, javax.jms.Message request)
          Creates message and populates it from exception to send it over JMS.
 java.lang.Object convert(javax.jms.Message message, java.util.Map properties)
          Converts message to Object.
 javax.jms.Message convert(java.lang.Object obj, javax.jms.Session session, java.util.Map properties, javax.jms.Message request)
          Creates message and populates it from object.
 

Method Detail

convert

java.lang.Object convert(javax.jms.Message message,
                         java.util.Map properties)
                         throws java.lang.Exception
Converts message to Object.

Parameters:
message - Source message
properties - Configuration properties
Returns:
Object created from message data
Throws:
java.lang.Exception

convert

javax.jms.Message convert(java.lang.Object obj,
                          javax.jms.Session session,
                          java.util.Map properties,
                          javax.jms.Message request)
                          throws java.lang.Exception
Creates message and populates it from object.

Parameters:
obj - Source object
session - Session to create message
properties - Configuration properties
request - Request message, can be null.
Returns:
Populated and ready to send message
Throws:
java.lang.Exception

convert

javax.jms.Message convert(java.lang.Exception e,
                          javax.jms.Session session,
                          java.util.Map properties,
                          javax.jms.Message request)
                          throws java.lang.Exception
Creates message and populates it from exception to send it over JMS.

Parameters:
obj - Exception
session - Session to create message
properties - Configuration properties
request - Request message, can be null.
Returns:
Populated and ready to send message
Throws:
java.lang.Exception


Copyright © 2006 Hammurapi Group. All Rights Reserved.