另一个缺点是此方法总是需要使用会话状态。
Another disadvantage is that this technique always requires session state be used.
很简单:禁用不使用会话状态的页中的会话状态。
Simple: you disable session state in pages that don't use it.
使用会话状态的目的是为了保存不能从另一个状态或当前交互重新计算的瞬时信息。
The purpose of session state is to keep information that is transient in nature and that cannot be recomputed from another state or the current interaction.
如果您在启用输出缓存的页中使用会话状态,并且应用程序在IIS 6.0上运行,则您需要关闭内核模式输出缓存。
If you use session state in a page that has output caching enabled, and if the application runs on IIS 6.0, then you need to turn off kernel-mode output caching.
要在业务层上管理状态,我们使用有状态会话ejb组件。
To manage state on the business tier, we use stateful session EJB components.
此类机制可以用于提供会话状态,但使用它们会有性能损失。
The mechanisms can be used to make the session state available, but there is a performance cost in using them.
CEAFeaturePack使用cookies来存储会话状态,因此必须是单独的浏览器—而不是一个浏览器中的单独窗口。
The CEA Feature Pack USES cookies to store session state, so it must be a separate browser-not a separate window in the same browser.
只有目标外部站点使用会话Cookie等普通Web技术来处理自己的状态管理时,用户才会看到“通常”的行为。
The user would only experience "normal" behavior if the targeted external site handled its own state management using normal Web techniques such as session cookies.
如果使用有状态会话,不要忘记在执行DML前清除缓存,否则Hibernate将会更新或清除相关缓存(见下面的范例10)。
If you use a stateful session, don't forget to clear the cache before you execute the DML otherwise Hibernate will update or evict the related cache (See the Example 10 below for details).
事件目录通过使用无状态会话bean来实现,可以通过从JNDI查询home接口来进行访问,如下所示。
The Event Catalog is implemented using a stateless session bean and can be accessed by looking up the home interface from JNDI as shown below.
为新事务使用无状态会话bean
还可以使用无状态会话Bean远程接口。
本文从向用户介绍PluggableApplicationClient的安装过程开始,然后向您说明如何使用它来与无状态会话ejb交互。
This article starts by taking you through the installation procedure of the Pluggable Application Client, then shows you how to use it to interact with a stateless session EJB.
使用无状态会话EJB组件
此外,使用有状态会话Bean将会再添加一些状态到您的应用服务器上,这也是不好的做法。
In addition, the use of stateful session beans pushes state to your application server, which is undesirable.
portlet使用一个会话bean来维护和传递 portlet 和组件状态。
The portlet uses a session bean to maintain and pass around the portlet and component state.
请注意,SYSTEMB提供无状态会话Bean接口并使用CMT。
Please note that SYSTEMB provides a stateless session bean interface and uses CMT.
重启WebSphereMQExplorer时自动恢复连接参数,使用会话中保存的Broker Explorer状态。
Automatically restore connection parameters when you restart WebSphere MQ Explorer, using the Broker Explorer state that is saved between sessions.
使用有状态会话Bean,客户端的逻辑业务可能非常简单,如下所示。
With a stateful session bean, the business logic in the client can be as simple as.
因此,我们建议对大多数应用程序使用无状态会话Bean方法。
Therefore, we recommend that a stateless session bean approach be chosen for most applications.
StoreControllerservlet使用称为CategoriesBean的无状态会话EJB 的getCats()方法获取产品类别信息。
The StoreController servlet fetches the product categories information using the getCats() method of a stateless session EJB called CategoriesBean.
基础结构必须适应各种可能性,如某些使用者无法在临时停机的情况下保留其会话状态。
The infrastructure must accommodate possibilities such as some consumers being unable to retain its conversational state across temporary outages.
我思考了很久,如何能够在不使用有状态会话ejb组件的情况下完成相同的任务。
I am having a hard time imagining how I would do the same thing as simply without stateful session EJB components.
强烈建议结合使用DML风格操作和无状态会话。
It is strongly recommended that DML-style operations be used along with a stateless session.
我们将创建并使用一个简单的无状态会话bean,因为它比较容易理解和开发。
We will create and use a simple stateless session bean because it is easy to understand and develop.
以上的@无状态注解,意味着此类现在是一个无状态会话bean,将使用业务接口来调用它。
Stateless annotation, above, means that this class is now a stateless session bean, and the business interface is used to invoke it.
再次强调,您应当始终探索其它选项,如使用带有事务层的无状态会话bean。
Again, you should always explore other options such as the use of a stateless session bean with a transaction layer.
如果有状态解决方案是必需的,则请考虑使用带有简单事务层的无状态会话bean,或者在业务层上创建瘦servlet层。
If a stateful solution is essential, consider using stateless session beans with a simple transaction layer, or creating a thin servlet layer on top of the business tier.
为了清空数据库,程序使用一个无状态会话bean自动启动CMT。
To clear the database, the program USES a stateless session bean that automatically starts CMTs.
位置独立性是由远程接口使用RMIover IIOP提供给无状态会话Bean或封装服务的实体home方法的。
Location independence is provided by remote interfaces using RMI over IIOP to stateless session beans or entity home methods that encapsulate the services.
应用推荐