事实上,在理想情况下,客户端从来不必知道路由过程是否发生——这需要对会话或状态管理进行深入的研究。
In fact, ideally, the client should never even need to know that routing is taking place — this leads to the very important consideration involving session or state management.
Web服务客户也可以通过bean的服务端点接口访问无状态会话bean。
A web service client can also access a stateless session bean through the service endpoint interface of that bean.
Web服务的对话支持提供了可以驱动与客户之间的有状态的消息交换会话的能力,同时补充了BPEL4WS。
Conversation Support for web services provides the capability to drive a stateful message exchange session with the customer while complementing BPEL4WS.
客户机只维护其中一种状态 ——某种形式的会话标识符。
The client maintains only one piece of state—a session identifier of some sort.
使用有状态会话Bean,客户端的逻辑业务可能非常简单,如下所示。
With a stateful session bean, the business logic in the client can be as simple as.
这个服务密匙能够保证:一个指定的有状态会话bean将被来自同一个客户机的后续请求访问。
The service key can guarantee that a specified stateful session bean will be accessed by subsequent requests from same client.
清单12说明了无状态的会话bean(充当Web服务实现)能够如何访问在来自客户端的消息内部传送的WS - Addressing引用特性。
Listing 12 illustrates how the stateless session bean, acting as the Web services implementation, can access WS-Addressing reference properties propagated within the message headers from the client.
在客户端用HTTPcookie或者隐藏表单字段存储会话状态有很大的安全风险——它将应用程序的一部分内部内容暴露给了非受信任的客户层。
Storing session state in the client using HTTP cookies or hidden form fields has significant security risks — it exposes a part of your application internals to the untrusted client layer.
该应用程序包括一个无状态会话Bean,由一个简单的Web客户端使用。
The application has a stateless session bean, which is used by a simple Web client.
“GenerateDeployCode”向导生成一个无状态会话来把客户机请求传递到服务,并且处理从服务返回的请求。
The "generate Deploy Code" wizard generates a stateless session bean to pass the client request to the service and handle the returned response from the service.
有状态会话bean的池不能象无状态EJB组件的池那样用来容纳任何客户机请求。
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不维护任何两次方法调用(它提供的服务)之间的状态,但有状态会话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上下文外部的客户机层中使用编程事务时,您不需要设置事务类型。
When you use programmatic transactions in the client layer outside of the context of a stateless session bean, you don't need to set the transaction type.
通过使用一个客户机cookie,我们可以跟踪客户机会话的缓存状态。
We can track the cached state of the client session by using a client cookie. Listing 1 puts it together
有状态会话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用于那些为单一客户机请求提供服务的业务逻辑任务。
Stateless session beans are used for business-logic tasks that service a single request from client code.
IBMRecordsManagerAPI包含一些用于客户机的有状态会话bean。
The IBM Records Manager API comprises some stateful session beans for the client’s usage.
在该示例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.
有状态会话bean保存特定客户机调用之间的信息。
A stateful bean preserves information between invocations from a specific client.
由于无线网络的有限带宽,而且多数无线网关不支持“cookie”,所以将用户会话状态从服务器端推入到客户端是不太可能的。
Due to the limited bandwidth on the wireless network and the lack of support for "cookies" in most wireless gateways, it is not possible to push the user's session state from the server to the client.
此ID用于在请求间维护与该客户端会话关联的服务器端状态。
This id is used to maintain server-side state associated with the client session across requests.
此ID用于在请求间维护与该客户端会话关联的服务器端状态。
This id is used to maintain server-side state associated with the client session across requests.
应用推荐