Topic: 怎样实现对jboss的连接限制

  Print this page

1.怎样实现对jboss的连接限制 Copy to clipboard
Posted by: zuohaosh
Posted on: 2004-02-07 14:35

怎样修改配置文件,使得server用户访问数量到一定极限时跳转到服务器忙的页面
谢谢。

2.Re:怎样实现对jboss的连接限制 [Re: zuohaosh] Copy to clipboard
Posted by: punk
Posted on: 2004-02-13 18:51

It's not mentioned in JBoss 3.2x. Manual.

But it's quite straight forward to implement in the application. If you use servlet as the front controller of your applicatioin, you can keep a counter for active sessions in applicationContext. When the counter reaches the limit, the servlet can reject request by replying 500 (server busy). Is that what you want to achieve? You could implement the same with filter as well.

Of course, you want to keep the acutal limit in web.xml as parameter to the servlet .

Hope this helps.

3.Re:怎样实现对jboss的连接限制 [Re: zuohaosh] Copy to clipboard
Posted by: jefferykim
Posted on: 2004-02-16 14:25

how to set acutal limit in web.xml?

thanks

4.Re:怎样实现对jboss的连接限制 [Re: zuohaosh] Copy to clipboard
Posted by: cqlgc
Posted on: 2004-02-17 21:38

how to set acutal limit in web.xml?

thanks

5.Re:怎样实现对jboss的连接限制 [Re: cqlgc] Copy to clipboard
Posted by: hahaha
Posted on: 2004-02-18 09:17

关注


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923