Interface ConnectionResource
-
- All Known Implementing Classes:
ConnectionFactoryResource
public interface ConnectionResource
The ConnectionResource is the contract used to provide
Connection
pools to the SJMS component. A user should use this to provide access to an alternative pooled connection resource such as aConnection
pool that is managed by a J2EE container.It is recommended though that for standard
ConnectionFactory
providers you use the {@link ConnectionFactoryResource) implementation that is provided with SJMS as it is optimized for this component.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.jms.Connection
borrowConnection()
Borrows aConnection
from the connection pool.void
returnConnection(javax.jms.Connection connection)
Returns theConnection
to the connection pool.
-