By default are connections to a given resource manager shareable across multiple beans or not? Whizlabs says by default they are unshareable, but HFEJB says its shareable by default.
posted 10 years ago
The bean provider can control the extent that connections are shared.By default, other enterprise beans in the application that use the same resource in the same transaction context can share the connection. The bean provider can set the res-sharing-scope deployment descriptor element to Unshareable to indicate that a connection not be shared. Keep in mind, though, that sharing connections to a resource manager allows the container to optimize connection and local transaction use. It is recommended that connections be marked Shareable