Package org.apache.activemq.ra
Class InboundMessageProducerProxy
- java.lang.Object
-
- org.apache.activemq.ra.InboundMessageProducerProxy
-
- All Implemented Interfaces:
MessageProducer
,QueueSender
,TopicPublisher
public class InboundMessageProducerProxy extends Object implements MessageProducer, QueueSender, TopicPublisher
An implementation ofMessageProducer
which uses the ActiveMQ JCA ResourceAdapter's current thread's JMSSession
to send messages.
-
-
Constructor Summary
Constructors Constructor Description InboundMessageProducerProxy(MessageProducer messageProducer, Destination destination)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
int
getDeliveryMode()
Destination
getDestination()
boolean
getDisableMessageID()
boolean
getDisableMessageTimestamp()
int
getPriority()
Queue
getQueue()
long
getTimeToLive()
Topic
getTopic()
void
publish(Message arg0)
void
publish(Message arg0, int arg1, int arg2, long arg3)
void
publish(Topic arg0, Message arg1)
void
publish(Topic arg0, Message arg1, int arg2, int arg3, long arg4)
void
send(Destination destination, Message message)
void
send(Destination destination, Message message, int deliveryMode, int priority, long timeToLive)
void
send(Message message)
void
send(Message message, int deliveryMode, int priority, long timeToLive)
void
send(Queue arg0, Message arg1)
void
send(Queue arg0, Message arg1, int arg2, int arg3, long arg4)
void
setDeliveryMode(int i)
void
setDisableMessageID(boolean b)
void
setDisableMessageTimestamp(boolean b)
void
setPriority(int i)
void
setTimeToLive(long l)
-
-
-
Constructor Detail
-
InboundMessageProducerProxy
public InboundMessageProducerProxy(MessageProducer messageProducer, Destination destination) throws JMSException
- Throws:
JMSException
-
-
Method Detail
-
close
public void close() throws JMSException
- Specified by:
close
in interfaceMessageProducer
- Throws:
JMSException
-
getDestination
public Destination getDestination() throws JMSException
- Specified by:
getDestination
in interfaceMessageProducer
- Throws:
JMSException
-
getDeliveryMode
public int getDeliveryMode() throws JMSException
- Specified by:
getDeliveryMode
in interfaceMessageProducer
- Throws:
JMSException
-
getDisableMessageID
public boolean getDisableMessageID() throws JMSException
- Specified by:
getDisableMessageID
in interfaceMessageProducer
- Throws:
JMSException
-
getDisableMessageTimestamp
public boolean getDisableMessageTimestamp() throws JMSException
- Specified by:
getDisableMessageTimestamp
in interfaceMessageProducer
- Throws:
JMSException
-
getPriority
public int getPriority() throws JMSException
- Specified by:
getPriority
in interfaceMessageProducer
- Throws:
JMSException
-
getTimeToLive
public long getTimeToLive() throws JMSException
- Specified by:
getTimeToLive
in interfaceMessageProducer
- Throws:
JMSException
-
send
public void send(Destination destination, Message message) throws JMSException
- Specified by:
send
in interfaceMessageProducer
- Throws:
JMSException
-
send
public void send(Destination destination, Message message, int deliveryMode, int priority, long timeToLive) throws JMSException
- Specified by:
send
in interfaceMessageProducer
- Throws:
JMSException
-
send
public void send(Message message) throws JMSException
- Specified by:
send
in interfaceMessageProducer
- Specified by:
send
in interfaceQueueSender
- Throws:
JMSException
-
send
public void send(Message message, int deliveryMode, int priority, long timeToLive) throws JMSException
- Specified by:
send
in interfaceMessageProducer
- Specified by:
send
in interfaceQueueSender
- Throws:
JMSException
-
setDeliveryMode
public void setDeliveryMode(int i) throws JMSException
- Specified by:
setDeliveryMode
in interfaceMessageProducer
- Throws:
JMSException
-
setDisableMessageID
public void setDisableMessageID(boolean b) throws JMSException
- Specified by:
setDisableMessageID
in interfaceMessageProducer
- Throws:
JMSException
-
setDisableMessageTimestamp
public void setDisableMessageTimestamp(boolean b) throws JMSException
- Specified by:
setDisableMessageTimestamp
in interfaceMessageProducer
- Throws:
JMSException
-
setPriority
public void setPriority(int i) throws JMSException
- Specified by:
setPriority
in interfaceMessageProducer
- Throws:
JMSException
-
setTimeToLive
public void setTimeToLive(long l) throws JMSException
- Specified by:
setTimeToLive
in interfaceMessageProducer
- Throws:
JMSException
-
getQueue
public Queue getQueue() throws JMSException
- Specified by:
getQueue
in interfaceQueueSender
- Throws:
JMSException
-
send
public void send(Queue arg0, Message arg1) throws JMSException
- Specified by:
send
in interfaceQueueSender
- Throws:
JMSException
-
send
public void send(Queue arg0, Message arg1, int arg2, int arg3, long arg4) throws JMSException
- Specified by:
send
in interfaceQueueSender
- Throws:
JMSException
-
getTopic
public Topic getTopic() throws JMSException
- Specified by:
getTopic
in interfaceTopicPublisher
- Throws:
JMSException
-
publish
public void publish(Message arg0) throws JMSException
- Specified by:
publish
in interfaceTopicPublisher
- Throws:
JMSException
-
publish
public void publish(Message arg0, int arg1, int arg2, long arg3) throws JMSException
- Specified by:
publish
in interfaceTopicPublisher
- Throws:
JMSException
-
publish
public void publish(Topic arg0, Message arg1) throws JMSException
- Specified by:
publish
in interfaceTopicPublisher
- Throws:
JMSException
-
publish
public void publish(Topic arg0, Message arg1, int arg2, int arg3, long arg4) throws JMSException
- Specified by:
publish
in interfaceTopicPublisher
- Throws:
JMSException
-
-