The fact that Ajax lets you interact with a server without a full refresh puts the option of a stateful client back on the table.
Ajax让我们不需要进行完全刷新就可以与服务器进行交互,这一事实使有状态客户机再次成为可用选择。
Stateful interactions between client and server can be managed on either the Web tier or the business tier.
客户机和服务器之间的有状态交互可以在web层或业务层上进行管理。
The service key can guarantee that a specified stateful session bean will be accessed by subsequent requests from same client.
这个服务密匙能够保证:一个指定的有状态会话bean将被来自同一个客户机的后续请求访问。
Stateful session beans maintain a "conversational state" with the client and are good for sets of related tasks that span multiple client requests.
有状态会话bean维护客户机的“会话状态”,适合处理那些跨越多个客户机请求的任务。
In this article, we have shown examples of services that are stateful and stateless with respect to their client contract.
在本文中,我们展示了一些服务的示例,就它们的客户端契约而论,这些服务可以分为有状态的和无状态的。
The server can then use that identifier to look up all the complicated state (some of which the client shouldn't have access to!) and provide stateful behavior.
然后,服务器可以使用这个标识符查找到所有复杂的状态(包括客户机应该无法访问的数据),并提供有状态的行为。
A stateful bean can only handle requests from a single client until the client releases its hold on that particular bean instance.
有状态bean只能处理来自一个客户机的请求,直到该客户机释放其对那个特殊bean实例的控制。
A stateless session bean maintains no state across any two method calls (services it provides), whereas a stateful session bean maintains a state that is related to the client.
无状态会话bean不维护任何两次方法调用(它提供的服务)之间的状态,但有状态会话bean维护与客户机有关的状态。
With a stateful session bean, the business logic in the client can be as simple as.
使用有状态会话Bean,客户端的逻辑业务可能非常简单,如下所示。
Stateful command instances are generally used only once, or are pooled and recycled once the client is done with it.
有状态command实例通常仅仅使用一次,或者被放入池中,每次客户端使用完以后便回收。
Stateful information can be stored in HTML form fields, appended to hyperlinks, or stored in cookies on the client side.
有状态信息可以存储在HTML表单字段中、附加到超链接或者存储在客户机端的cookie中。
A pool of stateful session beans cannot be used to accommodate any client request the way that a pool of stateless EJB components can.
有状态会话bean的池不能象无状态EJB组件的池那样用来容纳任何客户机请求。
A stateful facade maintains an internal state in between client calls to operations defined on the facade.
有状态的facade包含多个客户端调用之间的内部状态,这些客户端调用用来调用facade中定义的操作。
A stateful bean preserves information between invocations from a specific client.
有状态会话bean保存特定客户机调用之间的信息。
In this example Web application, the client (a JSP page in the Web tier) holds a reference to, and calls methods on, an instance of the CustomerSession stateful session EJB component.
在该示例Web应用程序中,客户机(web层中的jsp页面)保存了一个对CustomerSession状态会话ejb组件的一个实例的引用,并调用该实例上的方法。
In this example Web application, the client (a JSP page in the Web tier) holds a reference to, and calls methods on, an instance of the CustomerSession stateful session EJB component.
在该示例Web应用程序中,客户机(web层中的jsp页面)保存了一个对CustomerSession状态会话ejb组件的一个实例的引用,并调用该实例上的方法。
应用推荐