当无状态 Bean 池用完时会发生什么
我们知道无状态会话 bean(JEE5 上下文)可以被池化。 我想知道当服务器的无状态会话 bean 池没有更多实例并且另一个客户端请求进来时会发生什么...
a)客户端请求是否处于(阻塞)等待状态或
b)服务器拒绝连接或者
c) 我们能否以编程方式处理这种情况,以根据特定应用程序的 SLA 给出定制响应
we know that the stateless sessions beans (JEE5 context) can be pooled.
I was wondering what happens when the Server's pool of stateless session beans has no more instances left and another client request comes in...
a) Is the client request put in a (blocked) waiting state OR
b) the server refuses the connection right away.. OR
c) Can we handle this situation programmatically to give a customized response based on the SLA of our specific application
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它因供应商而异。 WebSphere Application Server 将根据需要创建新实例,并且如果池已达到其最大大小,则在将 bean 返回到池时将删除它们。还可以使用 poolSize 选项导致请求阻塞,直到有 Bean 可用为止。
It varies from vendor to vendor. WebSphere Application Server will create new instances as required, and it will remove beans when returning them to the pool if the pool has reached its maximum size. The product also can be configured to have a hard limit using the poolSize option that causes requests to block until a bean becomes available.