001 /* 002 * Copyright (C) The Apache Software Foundation. All rights reserved. 003 * 004 * This software is published under the terms of the Apache Software License 005 * version 1.1, a copy of which has been included with this distribution in 006 * the LICENSE file. 007 * 008 * $Id: MessengerListener.java 155459 2005-02-26 13:24:44Z dirkv $ 009 */ 010 package org.apache.commons.messenger; 011 012 import javax.jms.MessageListener; 013 014 /** <p><code>MessengerListener</code> is a JMS MessageListener 015 * which is associated with a Messenger instance 016 * so that it can send replies or send other messages using 017 * the same JMS connection to which its listening.</p> 018 * 019 * @author <a href="mailto:jstrachan@apache.org">James Strachan</a> 020 * @version $Revision: 155459 $ 021 */ 022 public interface MessengerListener extends MessageListener { 023 024 /** 025 * Called whenever this MessageListener is added to a 026 * Messenger via the addListener() method to associate 027 * this MessageListener with a Messenger instance.. 028 */ 029 public void setMessenger(Messenger messager); 030 031 } 032