开发者

WebSphere 5.1: Setting JDBC datasource connection as "unshareable"

L.S.

Our DB provider has suggested that we use "unshareable" connections when connecting to their DB. I have a reasonable understanding about the pros/cons of using "unshareable" connections, and our programming model will not cause any issues mentioned in various blog posts.

Can anyone give me an idea of how to make our JDBC datasource connections "unsharable" without using the web.xml? Our component is an Stateless Session Bean not a Servlet.

Thanks,

David.开发者_运维百科


This is done using <res-sharing-scope> element in the <resource-ref> definition in web.xml

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜