WebSphere 5.1:将 JDBC 数据源连接设置为“不可共享”

发布于 2024-08-19 22:34:30 字数 291 浏览 16 评论 0原文

LS

我们的数据库提供商建议我们在连接到他们的数据库时使用“不可共享”连接。我对使用“不可共享”连接的优点/缺点有合理的理解,并且我们的编程模型不会导致各种 博客文章

谁能告诉我如何在不使用 web.xml 的情况下使我们的 JDBC 数据源连接“不可共享”?我们的组件是无状态会话 Bean,而不是 Servlet。

谢谢,
大卫.

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

等数载,海棠开 2024-08-26 22:34:30

这是使用完成的。中的元素web.xml 中的定义

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文