com.atomikos.jms.extra
Interface JmsSenderTemplate

All Known Implementing Classes:
AbstractJmsSenderTemplate, ConcurrentJmsSenderTemplate, SingleThreadedJmsSenderTemplate

public interface JmsSenderTemplate

Common interface for JMS send functionality so client can benefit from dependency injection.


Method Summary
 void executeCallback(JmsSenderTemplateCallback callback)
          Executes an application-level call-back within the managed session.
 void sendBytesMessage(byte[] content)
          Sends a ByteMessage.
 void sendMapMessage(Map content)
          Sends a MapMessage.
 void sendObjectMessage(Serializable content)
          Sends an ObjectMessage.
 void sendTextMessage(String content)
          Sends a TextMessage.
 

Method Detail

executeCallback

void executeCallback(JmsSenderTemplateCallback callback)
                     throws javax.jms.JMSException
Executes an application-level call-back within the managed session.

Parameters:
callback -
Throws:
javax.jms.JMSException

sendTextMessage

void sendTextMessage(String content)
                     throws javax.jms.JMSException
Sends a TextMessage.

Parameters:
content - The text as a string.
Throws:
javax.jms.JMSException

sendMapMessage

void sendMapMessage(Map content)
                    throws javax.jms.JMSException
Sends a MapMessage.

Parameters:
content - The Map to get the content from.
Throws:
javax.jms.JMSException

sendObjectMessage

void sendObjectMessage(Serializable content)
                       throws javax.jms.JMSException
Sends an ObjectMessage.

Parameters:
content - The serializable object content.
Throws:
javax.jms.JMSException

sendBytesMessage

void sendBytesMessage(byte[] content)
                      throws javax.jms.JMSException
Sends a ByteMessage.

Parameters:
content - The content as a byte array.
Throws:
javax.jms.JMSException


Copyright © 2016. All Rights Reserved.