org.apache.activemq
Class ActiveMQMessageTransformation

java.lang.Object
  extended by org.apache.activemq.ActiveMQMessageTransformation

public class ActiveMQMessageTransformation
extends java.lang.Object

A helper class for converting normal JMS interfaces into ActiveMQ specific ones.

Version:
$Revision: 1.1 $

Constructor Summary
ActiveMQMessageTransformation()
           
 
Method Summary
static ActiveMQDestination transformDestination(javax.jms.Destination destination)
          Creates a an available JMS message from another provider.
static ActiveMQMessage transformMessage(javax.jms.Message message, ActiveMQConnection connection)
          Creates a fast shallow copy of the current ActiveMQMessage or creates a whole new message instance from an available JMS message from another provider.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActiveMQMessageTransformation

public ActiveMQMessageTransformation()
Method Detail

transformDestination

public static ActiveMQDestination transformDestination(javax.jms.Destination destination)
                                                throws javax.jms.JMSException
Creates a an available JMS message from another provider.

Parameters:
destination - - Destination to be converted into ActiveMQ's implementation.
Returns:
ActiveMQDestination - ActiveMQ's implementation of the destination.
Throws:
javax.jms.JMSException - if an error occurs

transformMessage

public static final ActiveMQMessage transformMessage(javax.jms.Message message,
                                                     ActiveMQConnection connection)
                                              throws javax.jms.JMSException
Creates a fast shallow copy of the current ActiveMQMessage or creates a whole new message instance from an available JMS message from another provider.

Parameters:
message - - Message to be converted into ActiveMQ's implementation.
connection -
Returns:
ActiveMQMessage - ActiveMQ's implementation object of the message.
Throws:
javax.jms.JMSException - if an error occurs


Copyright © 2009 Apache Software Foundation. All Rights Reserved.