如果活动会话是在调用时出现的,则会添加该组件。
If an activity session is present on invocation, the component will be added.
您还可以使用会话ejb组件来代替命令层。
You can also replace the command layer with session EJB components.
要在业务层上管理状态,我们使用有状态会话ejb组件。
To manage state on the business tier, we use stateful session EJB components.
生命周期模型中的每个状态都可以一对一地映射到会话e JB组件。
Each state in the lifecycle model can be mapped one-to-one to a session EJB component.
下面所示的这些代码将会调用 EJB组件并将数据存储在会话范围之内。
The code that will invoke the EJB component and store the data in the session scope is shown below.
会话或实体e JB组件的远程接口提供了位置独立性。
Remote interfaces to session or entity EJB components provide location independence.
如果不存在活动会话,则组件会在现有的工作范围单元或本地事务的上下文中执行。
If an activity session is not present, the component will execute in the context of the existing unit of work scope or a local transaction.
我思考了很久,如何能够在不使用有状态会话ejb组件的情况下完成相同的任务。
I am having a hard time imagining how I would do the same thing as simply without stateful session EJB components.
图19显示了一个实现本地和远程接口会话EJB组件的典型设计。
Figure 19 shows a typical design of a session EJB component implementing both local and remote interfaces.
还可能需要将游戏与其他组件集成;例如,在游戏会话之间,要保持每个人的游戏状态。
It is likely that you will need to integrate the game with other components; for example, to keep each person's game state intact between game sessions.
总而言之,有状态会话ejb组件为管理应用程序状态提供了一种重量级机制。
All in all, stateful session EJB components provide a heavyweight mechanism for managing application state.
这里讨论的方案并未涵盖所有情形,但是它们代表了实体EJB组件和会话 EJB 组件的一些最常见用法。
The scenarios discussed here don't cover every situation, but they are representative of some of the most common uses for entity EJB components and session EJB components.
例如,sca导出组件会带来一个生成的无状态会话ejb。
For example, an SCA export results in a generated Stateless Session EJB.
示例是需要调用会话ejb的SCA组件。
An example is an SCA component that needs to invoke a session EJB.
有状态会话ejb组件的实现同样可以非常简单。
The stateful session EJB component implementation can likewise be very simple.
似乎除了有状态会话Bean之外,您已经为所有的EJB组件类型找到了合适的用途。
It seems like you have found a good use for every EJB component type — other than stateful session beans.
True:组件将在活动会话的上下文中执行。
True: Component will execute in the context of an activity session.
当使用EJB组件时,始终使用会话Facade。
图5显示了一个基于servlet的实现bean的生命周期,图6显示了一个会话ejb组件的生命周期。
Figure 5 shows the lifecycle of a servlet-based implementation bean and Figure 6 shows the lifecycle of a session EJB component.
AccountTransaction充当了一个供web应用程序或客户端访问实体e JB组件的会话虚包,因此它支持远程接口。
AccountTransaction ACTS as a session facade for Web applications or clients to access entity EJB components, and thus supports the remote interface.
本文讨论的方案并未包含所有情形,但是它们代表了有状态通信环境中的servlet和会话EJB组件的一些最常见用法。
The scenarios discussed here don't cover every situation, but they are representative of some of the most common uses for servlets and session EJB components in a stateful communication context.
OpenSessionInView拦截器和过滤器允许每个线程跨不同组件使用同一会话。
OpenSessionInView interceptor and filter which allow the usage of the same session per thread across different components.
这带来了如何向语音通道组件发起SIP(会话发起协议,SessionInitiation Protocol)调用的问题。
This leads to the question of how to initiate the SIP (Session Initiation Protocol) call to the voice modality component.
True 会在通过服务引用调用组件之前挂起当前活动会话(如果存在)。
True suspends the current activity session (if present) before invoking a component via a service reference.
使用无状态会话EJB组件
折衷的方法是生成“业务代表”并与TaskPOJO中的会话ej b组件相关联,如图5所示。
A compromise is to generate a "business delegate" and associated session EJB components from the Task POJOs as shown in Figure 5.
FacesContext对象包含了JSF用来管理当前会话中当前请求的GUI组件状态所需要的所有状态信息。
The FacesContext object contains all the state information JSF needs to manage the GUI component's state for the current request in the current session.
通过使用 WSAD中支持的Web服务向导,我们能够很容易地生成所需的构件来将我们的计算器服务无状态的会话EJB组件作为 Web 服务公开。
We were able to easily generate the necessary artifacts to expose our calculator service stateless session EJB component as a Web service using the Web Services wizard support in WSAD.
创建了STSession对象后,载入机器人所使用的组件并启动Sametime会话。
After creating the STSession object, you load the components the bot USES and start the Sametime session.
有了EJB2之后,“Home”实体可用于相同的目的——当存在一个代表用户角色的实体时,便不再需要额外的会话Bean组件。
After EJB 2, the entity "home" could be used to serve the same purpose — eliminating the need for the extra session bean component in cases where there is an entity that represents the user role.
应用推荐