1 /*** 2 * Created on Oct 6, 2005, Copyright UC Regents 3 */ 4 package org.telscenter.pas.service; 5 6 import javax.jms.JMSException; 7 import javax.jms.MessageListener; 8 import javax.jms.TopicPublisher; 9 import javax.jms.TopicSession; 10 11 /*** 12 * @author turadg 13 */ 14 public interface IMessagingService { 15 16 public void subscribeTopic(String topicString, MessageListener listener) 17 throws JMSException; 18 19 /*** 20 * @param topicName 21 * @return 22 * @throws JMSException 23 */ 24 public TopicSession getPublisherSession(String topicName) 25 throws JMSException; 26 27 /*** 28 * @param topicName 29 * @return 30 * @throws JMSException 31 */ 32 public TopicPublisher getPublisher(String topicName) throws JMSException; 33 34 }