JmsManager.java

00001 /*
00002  * JOnAS: Java(TM) Open Application Server
00003  * Copyright (C) 1999 Bull S.A.
00004  * Contact: jonas-team@objectweb.org
00005  * 
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or any later version.
00010  * 
00011  * This library is distributed in the hoper that irt will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  * 
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with this library; if not, write to the Free Software
00018  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
00019  * USA
00020  *
00021  * --------------------------------------------------------------------------
00022  * $Id: JmsManager.java,v 1.6 2004/04/28 15:31:20 durieuxp Exp $
00023  * --------------------------------------------------------------------------
00024  */
00025 
00026 package org.objectweb.jonas_jms.api;
00027 
00028 import java.util.Enumeration;
00029 import javax.jms.ConnectionFactory;
00030 import javax.jms.Queue;
00031 import javax.jms.QueueConnectionFactory;
00032 import javax.jms.Topic;
00033 import javax.jms.TopicConnectionFactory;
00034 import javax.jms.XAConnectionFactory;
00035 import javax.jms.XAQueueConnectionFactory;
00036 import javax.jms.XATopicConnectionFactory;
00037 import org.objectweb.transaction.jta.TransactionManager;
00038 
00049 public interface JmsManager {
00050 
00060     public void init(Class cl, boolean collocated, String url, TransactionManager tm) throws Exception;
00061 
00065     public void stop() throws Exception;
00066 
00070     public Queue createQueue(String name) throws Exception;
00071 
00075     public Queue getQueue(String name) throws Exception;
00076 
00080     public Enumeration getQueuesNames();
00081 
00085     public Topic createTopic(String name) throws Exception;
00086 
00090     public Topic getTopic(String name) throws Exception;
00091 
00095     public Enumeration getTopicsNames();
00096 
00100     public ConnectionFactory getConnectionFactory();
00101     
00105     public XAConnectionFactory getXAConnectionFactory();
00106 
00110      public TopicConnectionFactory getTopicConnectionFactory();
00111 
00115     public XATopicConnectionFactory getXATopicConnectionFactory();
00116 
00120     public QueueConnectionFactory getQueueConnectionFactory();
00121 
00125      public XAQueueConnectionFactory getXAQueueConnectionFactory();
00126 }
00127 

Generated on Tue Feb 15 15:05:49 2005 for JOnAS by  doxygen 1.3.9.1