由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - Web Service怎么让多个api call share 同一个 connection ?? (转载)
相关主题
Database Pooling 的问题怎么测试 Web Service Functions?
求救:Connection Pooling 没有close resultset 怎么解决[合集] Connection Pooling.
[转载] Re: 觉得自己很笨connection pool 面试题 (转载)
sevlet questionwlst + ant
how to sent progress message back from a servlet to a client?jdbc + oracle connection pooling问题
Timeout issue哎,现在client-side,server-side都要我来写。
How to compute round-trip time to webserjava http request能做到打开一次多次发送http request吗
Re: JDBC access Oracle?? & Connection PoolingHow to connect to SQL2000?
相关话题的讨论汇总
话题: web话题: connection话题: service话题: alive话题: 同一个
进入Java版参与讨论
1 (共1页)
S******1
发帖数: 216
1
【 以下文字转载自 Programming 讨论区 】
发信人: Snail121 (二爷粉丝团), 信区: Programming
标 题: Web Service怎么让多个api call share 同一个 connection ??
发信站: BBS 未名空间站 (Sun Aug 3 15:25:49 2014, 美东)
有一个关于apache keep alive 的问题。
如果有一个web server是用apache host的,设置了keep alive为true, 那是不是默认
对于同一个client的multiple api call (even different types of api to the same
web service) 都是share同一个connection, 除了设置外,在程序上如何实现这点呢(
比如用java servlet) ??
还有就是keep alive 是share persistent connection的, 也就是对于同一个client
不会多次创建http连接,那么这里的client是怎么定义的,是一个什么样的scope ? 比
如一个apache website 用了keep alive, 哪一个用户的browser开了多个tab也是同样
share一个连接吗,怎么identify的,原理是什么呢???????
s******e
发帖数: 493
2
Depending on the types of web servers, your keep alive might be honoured. If
it is honoured, from server side, it will only mean it will not terminate
the connection right after each request. It is still up to your client (
browser and javascript code/js framework) to reuse it. It is a quite
complicated topic, google is your best friend. Also you may want to search
long pooling, http streaming and websocket to dig deeper.
1 (共1页)
进入Java版参与讨论
相关主题
How to connect to SQL2000?how to sent progress message back from a servlet to a client?
Socket Connection refused in high-loaded serversTimeout issue
请问JDBC连SQL server的connect reset问题如何解决? (转载)How to compute round-trip time to webser
What's the relationship between Enterprise JavaBeRe: JDBC access Oracle?? & Connection Pooling
Database Pooling 的问题怎么测试 Web Service Functions?
求救:Connection Pooling 没有close resultset 怎么解决[合集] Connection Pooling.
[转载] Re: 觉得自己很笨connection pool 面试题 (转载)
sevlet questionwlst + ant
相关话题的讨论汇总
话题: web话题: connection话题: service话题: alive话题: 同一个