本文接下来具体讨论这些会话对象。
The rest of this article discusses these session objects in detail.
映射消息实例通过会话对象创建。
我们假定有一个使用会话对象的库。
Let's assume we have a library that works with a session object.
我们可以选择将组列表存储在会话对象中。
如果是的话,它将更新会话对象中的安全上下文。
If so, it updates the security context in the session object.
遗憾的是,特定于会话的数据可以存储在会话对象中。
Unfortunately, session specific data can be stored into session objects.
您需要请求会话对象,然后察看其内部才能检查一个值。
Before you can check a value, you need to request the session object and then look inside it.
在此应用中,我使用的方法为登录会话对象。
In this application, I have used the session object for the login method.
一个子会话对象在客户端程序上有一个相应的子会话。
A subsession object has a corresponding client subsession in the client program.
在页面加载过程中,包含客户端细节的bean实例应该保存在会话对象中。
During the page load, the client-detailed bean instance should be kept in the session object.
它首先尝试从会话中取对象。
会话是一个对象,可用几种方式来请求。
The session is an object that can be requested in a couple of ways.
这个会话bean方法中的一些对象可能属于一个HTTP请求。
Some objects in this session bean method might belong to an HTTP request.
该Repository对象代表客户机与连接器之间的一个连续会话。
The Repository object will represent one continuous session between the client and the connector.
发生这种情况是因为在 sess_write()会话处理程序中无法使用全局用户对象。
This happens because the global user object is not available in the sess_write() session handler.
所有会话bean的交互必须存在于Subject对象的上下文中。
All interaction with the session bean must be within the context of the Subject object.
Scope (请求/会话)指出到哪里查找对象。
Scope (request/session) specifies where to look for the object.
该方法立即从会话中提取 ISearchHelper对象。
This method immediately extracts the ISearchHelper object from the session.
用于在Portlet会话中设置对象的名称。
IGNORE_SESSION_SCOPE假当该值设置成真时,从追踪中会排除所有会话范围内的对象。
Com.ibm.faces.trace.IGNORE_SESSION_SCOPE false When set to true, excludes all session-scoped objects from the trace.
IGNORE_REQUEST_SCOPE假当该值设置为真时,从追踪中会排除所有会话范围内的对象。
Com.ibm.faces.trace.IGNORE_REQUEST_SCOPE false When set to true, excludes all request-scoped objects from the trace.
如果在会话中找不到对象,它就创建一个新对象。
If it cannot find the object in the session it creates a new one.
数据访问对象(Data Access Object,DAO)及会话外观(Session Facade)都是非常值得一用的。
Data Access Object (DAO) and Session Facade are both good ones to use.
许多应用程序,也许是极大多数的,将会从一个会话到下一个会话之间保存对象。
Many applications, perhaps most, will need to conserve objects from one session to the next.
这是会话和应用对象提供的,虽然在不同的层次。
This is what the Session and Application objects provide, albeit at different levels.
这是会话和应用对象提供的,虽然在不同的层次。
This is what the Session and Application objects provide, albeit at different levels.
应用推荐