org.apache.activemq
Class ActiveMQMessageTransformation
java.lang.Object
org.apache.activemq.ActiveMQMessageTransformation
public class ActiveMQMessageTransformation
- extends Object
A helper class for converting normal JMS interfaces into ActiveMQ specific ones.
- Version:
- $Revision: 1.1 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ActiveMQMessageTransformation
public ActiveMQMessageTransformation()
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 © 2011 Apache Software Foundation. All Rights Reserved.