Package org.exolab.jms.message

Examples of org.exolab.jms.message.TextMessageImpl


     * @throws JMSException if the JMS provider fails to create this message due
     *                      to some internal error.
     */
    public TextMessage createTextMessage() throws JMSException {
        ensureOpen();
        return new TextMessageImpl();
    }
View Full Code Here


     * @throws JMSException if the JMS provider fails to create this message due
     *                      to some internal error.
     */
    public TextMessage createTextMessage(String text) throws JMSException {
        ensureOpen();
        TextMessageImpl result = new TextMessageImpl();
        result.setText(text);
        return result;
    }
View Full Code Here

     *
     * @return a new message
     * @throws JMSException for any JMS error
     */
    protected Message newMessage() throws JMSException {
        return new TextMessageImpl();
    }
View Full Code Here

            throw new JMSException(
                    "Expected String body for TextMessage with JMSMessageID="
                    + message.getJMSMessageID()
                    + " but got type " + body.getClass().getName());
        }
        TextMessageImpl text = (TextMessageImpl) message;
        text.setText((String) body);
    }
View Full Code Here

TOP

Related Classes of org.exolab.jms.message.TextMessageImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.