views:

223

answers:

1

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.

A: 

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

kabram