关于Stateful Bean passivation的过程(100分)

  • 主题发起人 蓝色虾
  • 开始时间

蓝色虾

Unregistered / Unconfirmed
GUEST, unregistred user!
《Mastering EJB2》这样解释:
The client has invoked a
method on an EJB object thatdo
es
not have a bean tied to it in memory.
The container's pool size of beans has
been reached. Thus the container
needs to passivate a bean before
handling this client's request.
----------------------------------------
这句话我理解为,客户端在EJB Object调用一个
不存在于内存中的方法时容器的资源池将在处理这个客户端请求
之前钝化一个bean。
我不能理解这句话的意思啊,书上所言钝化一个Stateful Bean
的依据是最近使用次数最少的Stateful Bean,这与上面英文所说的
The client has invoked a
method on an EJB object thatdo
es
not have a bean tied to it in memory.
相矛盾啊,这句话到底该如何来理解呢?
多谢您的帮助。
 

client调用一个EJB Object对象的方法,但是在内存中没有和这个EJB Object绑定的bean,
而且此时ejb容器的pool已经达到上限了,因此容器要在钝化一个bean后
,才能处理这个client的请求。
 
明白了,茅塞顿开。
还是英文的理解能力不行啊
tied to it in memory
和pool size of beans has been reached
我都错误理解了,多谢!
 
顶部