Oneway (Java EE 5)

Java EE API


javax.jws Annotation Type Oneway


@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface Oneway

Implements: Annotation
@Retention(value=RUNTIME)
@Target(value=METHOD)

指示给定 @WebMethod 只有一条输入消息并且没有输出。通常,在执行实际业务方法之前,单向的方法返回调用的应用程序的控件线程。如果标记了 @Oneway 的操作具有返回值或 Holder 参数,或者声明了任何已检查的异常,则 181 处理器应该报告错误。
英文文档:

Indicates that the given @WebMethod has only an input message and no output. Typically, a oneway method returns the thread of control to the calling application prior to executing the actual business method. A 181 processor should report an error if an operation marked @Oneway has a return value or Holder parameters, or declares any checked exceptions.

Author:
Copyright (c) 2004 by BEA Systems, Inc. All Rights Reserved.



Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!