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 a Connection
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.
Modifier and Type | Method and Description |
---|---|
javax.jms.Connection |
borrowConnection()
Borrows a
Connection from the connection pool. |
void |
returnConnection(javax.jms.Connection connection)
Returns the
Connection to the connection pool. |
Apache Camel