java.lang.Object | |
↳ | org.springframework.jms.connection.DelegatingConnectionFactory |
javax.jms.ConnectionFactory implementation that delegates all calls
to a given target javax.jms.ConnectionFactory, adapting specific
create(Queue/Topic)Connection
calls to the target ConnectionFactory
if necessary (e.g. when running JMS 1.0.2 API based code against a generic
JMS 1.1 ConnectionFactory, such as ActiveMQ's PooledConnectionFactory).
This class allows for being subclassed, with subclasses overriding only
those methods (such as createConnection()
) that should not simply
delegate to the target ConnectionFactory.
Can also be defined as-is, wrapping a specific target ConnectionFactory, using the "shouldStopConnections" flag to indicate whether Connections obtained from the target factory are supposed to be stopped before closed. The latter may be necessary for some connection pools that simply return released connections to the pool, not stopping them while they sit in the pool.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Invoked by a BeanFactory after it has set all bean properties supplied
(and satisfied BeanFactoryAware and ApplicationContextAware).
| |||||||||||
Return the target ConnectionFactory that this ConnectionFactory delegates to.
| |||||||||||
Indicate whether Connections obtained from the target factory are supposed
to be stopped before closed ("true") or simply closed ("false").
| |||||||||||
Set the target ConnectionFactory that this ConnectionFactory should delegate to.
| |||||||||||
Should we stop the Connection, obtained from this ConnectionFactory?
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.beans.factory.InitializingBean
| |||||||||||
From interface
org.springframework.jms.connection.SmartConnectionFactory
|
Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware).
This method allows the bean instance to perform initialization only possible when all bean properties have been set and to throw an exception in the event of misconfiguration.
JMSException |
---|
JMSException |
---|
JMSException |
---|
Return the target ConnectionFactory that this ConnectionFactory delegates to.
Indicate whether Connections obtained from the target factory are supposed to be stopped before closed ("true") or simply closed ("false"). The latter may be necessary for some connection pools that simply return released connections to the pool, not stopping them while they sit in the pool.
Default is "false", simply closing Connections.
Set the target ConnectionFactory that this ConnectionFactory should delegate to.
Should we stop the Connection, obtained from this ConnectionFactory?
con | the Connection to check |
---|