1 25 26 package org.objectweb.jonas_jms.api; 27 28 import java.util.Enumeration ; 29 import javax.jms.ConnectionFactory ; 30 import javax.jms.Queue ; 31 import javax.jms.QueueConnectionFactory ; 32 import javax.jms.Topic ; 33 import javax.jms.TopicConnectionFactory ; 34 import javax.jms.XAConnectionFactory ; 35 import javax.jms.XAQueueConnectionFactory ; 36 import javax.jms.XATopicConnectionFactory ; 37 import org.objectweb.transaction.jta.TransactionManager; 38 39 49 public interface JmsManager { 50 51 60 public void init(Class cl, boolean collocated, String url, TransactionManager tm) throws Exception ; 61 62 65 public void stop() throws Exception ; 66 67 70 public Queue createQueue(String name) throws Exception ; 71 72 75 public Queue getQueue(String name) throws Exception ; 76 77 80 public Enumeration getQueuesNames(); 81 82 85 public Topic createTopic(String name) throws Exception ; 86 87 90 public Topic getTopic(String name) throws Exception ; 91 92 95 public Enumeration getTopicsNames(); 96 97 100 public ConnectionFactory getConnectionFactory(); 101 102 105 public XAConnectionFactory getXAConnectionFactory(); 106 107 110 public TopicConnectionFactory getTopicConnectionFactory(); 111 112 115 public XATopicConnectionFactory getXATopicConnectionFactory(); 116 117 120 public QueueConnectionFactory getQueueConnectionFactory(); 121 122 125 public XAQueueConnectionFactory getXAQueueConnectionFactory(); 126 } 127 128 | Popular Tags |