在请求时,如果会话不存在可以告诉会话是否创建一个。
When requested, the session can be told whether or not to initiate one if it doesn't already exist.
第二个方法接受一个布尔参数,这个参数用于判定会话不存在时是否创建新会话。
The second method accepts a boolean argument that determines whether or not a new Session will be created if it does not yet exist.
如果不存在会话对象,SIF将创建一个新的安全上下文,并将它放到securitycontextholder中。
IF the session object does not exist, SIF creates a new security context and puts it in the security context holder.
如果不存在活动会话,则组件会在现有的工作范围单元或本地事务的上下文中执行。
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.
使我感到更为疑惑的是为什么这里不存在无状态会话bean的单独版本。
What seems even more perplexing is why there isn't a singleton version of a stateless session bean.
它请求门户在每当包含该Portlet的页面被访问时,即使不存在任何用户登录,也要创建会话Cookie。
It requests that the portal creates a session cookie whenever a page containing the portlet is accessed, even if no user login exists.
如果之前不存在会话,仅为了在其中存储数据而在Portlet中创建一个会话,可能并不合适。
If a session did not exist before, it is probably not appropriate to create one in a portlet just for the purpose of storing data in it.
如果之前不存在会话,仅为了在其中存储数据而在Portlet中创建一个会话,可能并不合适。
If a session did not exist before, it is probably not appropriate to create one in a portlet just for the purpose of storing data in it.
应用推荐