1 /*
2 * Copyright (C) The Apache Software Foundation. All rights reserved.
3 *
4 * This software is published under the terms of the Apache Software License
5 * version 1.1, a copy of which has been included with this distribution in
6 * the LICENSE file.
7 *
8 * $Id: MessageletResponse.java 155459 2005-02-26 13:24:44Z dirkv $
9 */
10 package org.apache.commons.messagelet;
11
12 import javax.jms.Destination;
13 import javax.jms.JMSException;
14 import javax.jms.Message;
15 import javax.servlet.ServletResponse;
16
17 import org.apache.commons.messenger.Messenger;
18
19
20 /** <p><code>MessageletResponse</code> represents a servlet response from
21 * a JMS Message.</p>
22 *
23 * @author <a href="mailto:jstrachan@apache.org">James Strachan</a>
24 * @version $Revision: 155459 $
25 */
26 public interface MessageletResponse extends ServletResponse {
27
28 /** Sends a reply to the original message */
29 public void sendReply(Message reply) throws JMSException;
30
31
32 /** Returns the Messenger that should be used for sending replies to this incoming request */
33 public Messenger getReplyMessenger() throws JMSException;
34
35 /** Returns the destination that reply to messages are sent */
36 public Destination getReplyToDestination() throws JMSException;
37 }
38