WebSphere 5.1:将 JDBC 数据源连接设置为“不可共享”
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是使用完成的。中的元素web.xml 中的定义
This is done using <res-sharing-scope> element in the <resource-ref> definition in web.xml