View Javadoc
1   package ejava.examples.jmsmechanics;
2   
3   /**
4    * This interface defines a runtime capability to manage topics and queues
5    * on the JMS server.
6    */
7   public interface JMSAdmin {
8   	JMSAdmin deployTopic(String name, String jndiName)
9   			throws Exception;
10  	JMSAdmin deployQueue(String name, String jndiName)
11  			throws Exception;
12  	JMSAdmin destroyTopic(String name) throws Exception;
13  	JMSAdmin destroyQueue(String name) throws Exception;
14  
15  	/**
16  	 * Sets a prefix to add to any JNDI name registered. This is required
17  	 * when the server is running within the application server and only 
18  	 * specially prefixed JNDI names are made available for global use.
19  	 * @param string
20  	 * @return
21  	 */
22  	JMSAdmin setJNDIPrefix(String string);
23  
24  	void close() throws Exception;
25  }