每个远程服务方法都有对应的异步方法。
There is a corresponding asynchronous method for each remote service method.
异步方法不抛出异常。
一个“同步”异步方法的开销是多少?
要设置超时值,以毫秒为单位的异步方法。
To set the timeout value, in milliseconds, for an asynchronous method.
当需要频繁操作时,强烈建议使用异步方法。
In busy processes, the programmer is strongly encouraged to use the asynchronous versions of these calls.
但是,异步方法不能有返回类型,它们必须总是返回void。
But asynchronous methods cannot have return types, and they must always return void.
查询任务和前面的一样,但是现在调用异步方法来查询和申明任务。
Query tasks as the one before, but now it will call the unsynchronized methods to query and claim the task.
EJB 3.1Lite容器也将支持异步方法、调度方法等功能。
The EJB 3.1 Lite container will also support asynchronous methods, scheduled methods and more.
正如你看到的,使用异步方法不需要太多的变化,很多都是一样的。
As you can see, it does not require many changes to make the method asynchronous. Most of it stays just the same.
然而EJB在为消息传输定义端点、远程与异步方法调用、定时器等领域还是有一席之地的。
However, EJB will still have a place in defining endpoints for message delivery, remote and asynchronous method invocation, timers, etc.
清单2中的WorkManager方法的第4个参数(WorkListener)在用于这些异步方法时最有用。
It is with these asynchronous methods that the fourth parameter on the WorkManager methods in Listing 2 — a WorkListener — is at its most useful. Listing 5 shows this interface.
一个异步方法能返回一个Future对象,该对象使得客户端可以获得一个结果值、检查异常或者尝试取消正在进行中的调用。
An asynchronous method can return a Future object that allows the client to retrieve a result value, check for exceptions, or attempt to cancel an in-progress invocation.
随着CORBA应用领域的扩展,许多应用需要CORBA提供异步机制,而传统的CORBA不提供异步方法激活机制。
With the growth of the application domain of CORBA, many applications need the asynchronous mechanism in CORBA. Traditionally, CORBA does not provide the asynchronous method invocation mechanism.
异步方法可能还支持多个挂起的调用(多个并行调用),允许您的代码在此方法完成其他挂起的操作之前调用此方法任意多次。
An asynchronous method may also support multiple pending calls (multiple concurrent invocations), allowing your code to call it any number of times before it completes other pending operations.
介绍了CORBA中的四种异步激发方式:多线程方式、单向异步激发方式、延迟同步激发方式以及异步方法调用方式,并讨论了各种异步激发方式的优缺点。
In this article, we introduce four kinds of asynchronous invocation way in CORBA:Multithread, Oneway, Deferred Synchronous and AMI. We also discuss their advantages and disadvantages.
如果请求是异步的,这个方法会在发送请求之后立即返回。
If the request is asynchronous, this method returns immediately after sending the request.
通过一个异步的方法调用,容器将控制权返还给客户端并且在一个单独的线程上继续处理该调用。
With an asynchronous method invocation the container returns control to the client and continues processing the invocation on a separate thread.
这种方法屏蔽创建一个异步请求所需的大部分编码。
This method masks much of the coding that is necessary to create an asynchronous request.
异步跟踪:在这种方法中,将运行外部进程来扫描更改。
Asynchronous tracking: in this method, there is an external process that runs and scans for changes.
这包括指定访问该服务所需的传输协议的规定,声明同步和异步服务的更明确的方法。
These include a provision to specify the transport protocol, which is needed to access the service, and a clearer method of declaring both synchronous and asynchronous services.
可以采用两种方法在客户端实现这种异步,下面几个部分将对此进行描述。
There are two ways to implement this on the client side, described in the following sections.
无法使用简单的方法返回异步调用的结果。
There's no easy way to return the result of an asynchronous call.
在其执行过程中,BPEL流程将调用一个异步服务,方法是将另一消息放在名为IMPORTQ的MQ出站队列。
During its execution, the BPEL process will invoke an asynchronous service by placing another message on an outgoing MQ queue called IMPORTQ.
WS - RM没有定义任何方法用来使发送方异步接收ack。
WS-RM doesn't define any way for this sender to asynchronously receive ACKs.
当执行远程调用时,创建类的实例并将其传递给异步服务方法,如清单4所示。
You create an instance of the class and pass it to your asynchronous service method when you make your remote call, as seen in Listing 4.
异步消息传递:此方法解决了应用程序之间的紧密耦合问题。
Asynchronous messaging: This approach addresses the problem of tight coupling between applications.
这种回调方法在异步网络框架中很常见。
This callback approach is common in asynchronous networking frameworks.
创建了一个异步回调方法。
第一种方法是使用分布式对象(也称为对象请求代理),第二种方法是使用异步消息传递。
The first is the method of distributed objects (also known as object Request Broker), and the second method is that of asynchronous messaging.
主接口的每种方法在异步接口中都有相匹配的条目,但是附带了void返回类型和asynccallback类的附加参数。
Every method of the main interface has a matching entry in the asynchronous interface, but with a return type of void and an additional argument of class AsyncCallback.
应用推荐