Search in sources :

Example 11 with TopicConnection

use of javax.jms.TopicConnection in project spring-framework by spring-projects.

the class TransactionAwareConnectionFactoryProxy method createTopicConnection.

@Override
public TopicConnection createTopicConnection(String username, String password) throws JMSException {
    ConnectionFactory target = obtainTargetConnectionFactory();
    if (!(target instanceof TopicConnectionFactory)) {
        throw new javax.jms.IllegalStateException("'targetConnectionFactory' is no TopicConnectionFactory");
    }
    TopicConnection targetConnection = ((TopicConnectionFactory) target).createTopicConnection(username, password);
    return (TopicConnection) getTransactionAwareConnectionProxy(targetConnection);
}
Also used : TopicConnectionFactory(javax.jms.TopicConnectionFactory) QueueConnectionFactory(javax.jms.QueueConnectionFactory) TopicConnectionFactory(javax.jms.TopicConnectionFactory) ConnectionFactory(javax.jms.ConnectionFactory) TopicConnection(javax.jms.TopicConnection)

Aggregations

TopicConnection (javax.jms.TopicConnection)11 TopicConnectionFactory (javax.jms.TopicConnectionFactory)6 Connection (javax.jms.Connection)5 QueueConnection (javax.jms.QueueConnection)5 TopicSession (javax.jms.TopicSession)5 Test (org.junit.Test)4 Topic (javax.jms.Topic)3 ACSJMSTextMessage (com.cosylab.acs.jms.ACSJMSTextMessage)2 ConnectionFactory (javax.jms.ConnectionFactory)2 Message (javax.jms.Message)2 TextMessage (javax.jms.TextMessage)2 TopicPublisher (javax.jms.TopicPublisher)2 ACSMailAndSmsServer (alma.alarmsystem.core.mail.ACSMailAndSmsServer)1 StatsCalculator (alma.alarmsystem.statistics.StatsCalculator)1 AlarmCacheListenerImpl (cern.laser.business.cache.AlarmCacheListenerImpl)1 AdminUserDefinitionServiceImpl (cern.laser.business.pojo.AdminUserDefinitionServiceImpl)1 AlarmCacheServerImpl (cern.laser.business.pojo.AlarmCacheServerImpl)1 AlarmDefinitionServiceImpl (cern.laser.business.pojo.AlarmDefinitionServiceImpl)1 AlarmMessageProcessorImpl (cern.laser.business.pojo.AlarmMessageProcessorImpl)1 AlarmPublisherImpl (cern.laser.business.pojo.AlarmPublisherImpl)1