Top Description Methods
org.springframework.jms.connection

public Interface SmartConnectionFactory

extends ConnectionFactory
Known Direct Implementers
org.springframework.jms.connection.DelegatingConnectionFactory
Imports
jakarta.jms.Connection, .ConnectionFactory

Extension of the jakarta.jms.ConnectionFactory interface, indicating how to release Connections obtained from it.
Author
Juergen Hoeller
Since
2.0.2

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

whether a stop call is necessary
shouldStop
(Connection
the Connection to check
con
)

Should we stop the Connection, obtained from this ConnectionFactory?

Inherited from jakarta.jms.ConnectionFactory:
createConnectioncreateConnectioncreateContextcreateContextcreateContextcreateContext

Method Detail

shouldStopback to summary
public boolean shouldStop(Connection con)

Should we stop the Connection, obtained from this ConnectionFactory?

Parameters
con:Connection

the Connection to check

Returns:boolean

whether a stop call is necessary

See Also
jakarta.jms.Connection#stop()