1 16 package org.apache.cocoon.components.jms; 17 18 import javax.jms.JMSException ; 19 import javax.jms.MessageListener ; 20 import javax.jms.TopicPublisher ; 21 import javax.jms.TopicSession ; 22 import javax.naming.NamingException ; 23 24 import org.apache.avalon.framework.CascadingException; 25 26 33 public interface JMSConnection { 34 35 static final String ROLE = JMSConnection.class.getName(); 36 37 48 void registerListener(MessageListener listener, String selector) 49 throws CascadingException, JMSException , NamingException ; 50 51 58 TopicPublisher getPublisher() throws JMSException , NamingException ; 59 60 68 TopicSession getSession() throws NamingException , JMSException ; 69 } | Popular Tags |