Home » xml-commons-external-1.4.01-src » javax » xml » messaging » [javadoc | source]

    1   /*
    2    * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
    3    *
    4    * Copyright 2000-2007 Sun Microsystems, Inc. All rights reserved. 
    5    *
    6    * The contents of this file are subject to the terms of either the GNU
    7    * General Public License Version 2 only ("GPL") or the Common Development
    8    * and Distribution License ("CDDL") (collectively, the "License").  You may
    9    * not use this file except in compliance with the License.  You can obtain
   10    * a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
   11    * or mq/legal/LICENSE.txt.  See the License for the specific language
   12    * governing permissions and limitations under the License.
   13    * 
   14    * When distributing the software, include this License Header Notice in each
   15    * file and include the License file at mq/legal/LICENSE.txt.  Sun designates
   16    * this particular file as subject to the "Classpath" exception as provided by
   17    * Sun in the GPL Version 2 section of the License file that accompanied this
   18    * code.  If applicable, add the following below the License Header, with the
   19    * fields enclosed by brackets [] replaced by your own identifying information:
   20    * "Portions Copyrighted [year] [name of copyright owner]"
   21    * 
   22    * Contributor(s):
   23    * 
   24    * If you wish your version of this file to be governed by only the CDDL or
   25    * only the GPL Version 2, indicate your decision by adding "[Contributor]
   26    * elects to include this software in this distribution under the [CDDL or GPL
   27    * Version 2] license."  If you don't indicate a single choice of license, a
   28    * recipient has the option to distribute your version of this file under
   29    * either the CDDL, the GPL Version 2 or  to extend the choice of license to
   30    * its licensees as provided above.  However, if you add GPL Version 2 code
   31    * and therefore, elected the GPL Version 2 license, then the option applies
   32    * only if the new code is made subject to such option by the copyright holder. 
   33    */
   34   
   35   /*
   36    * @(#)OnewayListener.java	1.3 07/02/07
   37    */ 
   38   
   39   package javax.xml.messaging;
   40   
   41   import javax.xml.soap;
   42   
   43   /**
   44    * A marker interface for components (for example, servlets) that are 
   45    * intended to be consumers of one-way (asynchronous) JAXM messages.  
   46    * The receiver of a one-way message is sent the message in one operation,
   47    * and it sends the response in another separate operation. The time
   48    * interval between the receipt of a one-way message and the sending
   49    * of the response may be measured in fractions of seconds or days.
   50    * <P>
   51    * The implementation of the <code>onMessage</code> method defines
   52    * how the receiver responds to the <code>SOAPMessage</code> object
   53    * that was passed to the <code>onMessage</code> method.
   54    *
   55    * @see JAXMServlet
   56    * @see ReqRespListener
   57    */
   58   public interface OnewayListener {
   59   
   60       /**
   61        * Passes the given <code>SOAPMessage</code> object to this
   62        * <code>OnewayListener</code> object.  
   63        * This method is invoked behind the scenes, typically by the
   64        * container (servlet or EJB container) after the messaging provider
   65        * delivers the message to the container. 
   66        *
   67        * It is expected that EJB Containers will deliver JAXM messages
   68        * to EJB components using message driven Beans that implement the
   69        * <code>javax.xml.messaging.OnewayListener</code> interface.
   70        *
   71        * @param message the <code>SOAPMessage</code> object to be passed to this
   72        *                <code>OnewayListener</code> object
   73        */
   74       public void onMessage(SOAPMessage message);
   75   }

Home » xml-commons-external-1.4.01-src » javax » xml » messaging » [javadoc | source]