Interface
package com.webmethods.jms.marshal;
import java.io.Serializable;
import javax.jms.JMSException;
import com.webmethods.jms.WmBytesMessage;
import com.webmethods.jms.WmMapMessage;
import com.webmethods.jms.WmMessage;
import com.webmethods.jms.WmObjectMessage;
import com.webmethods.jms.WmStreamMessage;
import com.webmethods.jms.WmTextMessage;
public interface WmMessageFactory
{
/**
* Returns a new BytesMessage that can be populated by the
* marshalling routine from the BrokerEvent.
*/
public WmBytesMessage createBytesMessage() throws JMSException;
/**
* Returns a new MapMessage that can be populated by the
* marshalling routine from the BrokerEvent.
*/
public WmMapMessage createMapMessage() throws JMSException;
/**
* Returns a new Message that can be populated by the
* marshalling routine from the BrokerEvent.
*/
public WmMessage createMessage() throws JMSException;
/**
* Returns a new ObjectMessage that can be populated by the
* marshalling routine from the BrokerEvent.
*/
public WmObjectMessage createObjectMessage() throws JMSException;
/**
* Returns a new ObjectMessage that can be populated by the
* marshalling routine from the BrokerEvent.
*/
public WmObjectMessage createObjectMessage(Serializable object) throws
JMSException;
/**
* Returns a new StreamMessage that can be populated by the
* marshalling routine from the BrokerEvent.
*/
public WmStreamMessage createStreamMessage() throws JMSException;
/**
* Returns a new TextMessage that can be populated by the
* marshalling routine from the BrokerEvent.
*/
public WmTextMessage createTextMessage() throws JMSException;
/**
* Returns a new TextMessage that can be populated by the
* marshalling routine from the BrokerEvent.
*/
public WmTextMessage createTextMessage(String text)
throws JMSException;
}