| java.lang.Object org.springframework.jms.connection.SingleConnectionFactory org.springframework.jms.connection.SingleConnectionFactory102
Constructor Summary | |
public | SingleConnectionFactory102() Create a new SingleConnectionFactory102 for bean-style usage. | public | SingleConnectionFactory102(ConnectionFactory connectionFactory, boolean pubSubDomain) Create a new SingleConnectionFactory102 that always returns a single
Connection that it will lazily create via the given target
ConnectionFactory. |
Method Summary | |
public void | afterPropertiesSet() 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. | protected Connection | doCreateConnection() This implementation overrides the superclass method to use JMS 1.0.2 API. | public boolean | isPubSubDomain() Return whether the Publish/Subscribe domain (Topics) is used. | public void | setPubSubDomain(boolean pubSubDomain) Configure the factory with knowledge of the JMS domain used. |
SingleConnectionFactory102 | public SingleConnectionFactory102()(Code) | | Create a new SingleConnectionFactory102 for bean-style usage.
|
SingleConnectionFactory102 | public SingleConnectionFactory102(ConnectionFactory connectionFactory, boolean pubSubDomain)(Code) | | Create a new SingleConnectionFactory102 that always returns a single
Connection that it will lazily create via the given target
ConnectionFactory.
Parameters: connectionFactory - the target ConnectionFactory Parameters: pubSubDomain - whether the Publish/Subscribe domain (Topics) orPoint-to-Point domain (Queues) should be used |
afterPropertiesSet | public void afterPropertiesSet()(Code) | | 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.
|
doCreateConnection | protected Connection doCreateConnection() throws JMSException(Code) | | This implementation overrides the superclass method to use JMS 1.0.2 API.
|
isPubSubDomain | public boolean isPubSubDomain()(Code) | | Return whether the Publish/Subscribe domain (Topics) is used.
Otherwise, the Point-to-Point domain (Queues) is used.
|
setPubSubDomain | public void setPubSubDomain(boolean pubSubDomain)(Code) | | 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).
Parameters: pubSubDomain - true for Publish/Subscribe domain (Topics),false for Point-to-Point domain (Queues) |
Fields inherited from org.springframework.jms.connection.SingleConnectionFactory | final protected Log logger(Code)(Java Doc)
|
|
|