java.lang.Object | ||
↳ | org.springframework.jms.connection.SingleConnectionFactory | |
↳ | org.springframework.jms.connection.SingleConnectionFactory102 |
This class is deprecated.
as of Spring 3.0, in favor of the JMS 1.1 based SingleConnectionFactory
A subclass of SingleConnectionFactory
for the JMS 1.0.2 specification,
not relying on JMS 1.1 methods like SingleConnectionFactory itself.
This class can be used for JMS 1.0.2 providers, offering the same API as
SingleConnectionFactory does for JMS 1.1 providers.
You need to set the "pubSubDomain" property
,
since this class will always explicitly differentiate between a
javax.jms.QueueConnection and a javax.jms.TopicConnection.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.jms.connection.SingleConnectionFactory
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new SingleConnectionFactory102 for bean-style usage.
| |||||||||||
Create a new SingleConnectionFactory102 that always returns a single
Connection that it will lazily create via the given target
ConnectionFactory.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
In addition to checking whether the target ConnectionFactory is set,
make sure that the supplied factory is of the appropriate type for
the specified destination type: QueueConnectionFactory for queues,
TopicConnectionFactory for topics.
| |||||||||||
Return whether the Publish/Subscribe domain (Topics) is used.
| |||||||||||
Configure the factory with knowledge of the JMS domain used.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This implementation overrides the superclass method to use JMS 1.0.2 API.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.jms.connection.SingleConnectionFactory
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.beans.factory.DisposableBean
| |||||||||||
From interface
org.springframework.beans.factory.InitializingBean
|
Create a new SingleConnectionFactory102 for bean-style usage.
Create a new SingleConnectionFactory102 that always returns a single Connection that it will lazily create via the given target ConnectionFactory.
connectionFactory | the target ConnectionFactory |
---|---|
pubSubDomain | whether the Publish/Subscribe domain (Topics) or Point-to-Point domain (Queues) should be used |
In addition to checking whether the target ConnectionFactory is set, make sure that the supplied factory is of the appropriate type for the specified destination type: QueueConnectionFactory for queues, TopicConnectionFactory for topics.
Return whether the Publish/Subscribe domain (Topics) is used. Otherwise, the Point-to-Point domain (Queues) is used.
Configure the factory with knowledge of the JMS domain used. This tells the JMS 1.0.2 provider which class hierarchy to use for creating Connections and Sessions.
Default is Point-to-Point (Queues).
pubSubDomain | true for Publish/Subscribe domain (Topics),
false for Point-to-Point domain (Queues)
|
---|
This implementation overrides the superclass method to use JMS 1.0.2 API.
JMSException |
---|