org.objectweb.jtests.jms.admin
Interface Admin

All Known Implementing Classes:
AbstractAdmin, GenericAdmin

public interface Admin

Simple Administration interface.
JMS Provider has to implement this simple interface to be able to use the test suite.


Method Summary
 void createConnectionFactory(java.lang.String name)
          Creates a ConnectionFactory and makes it available from JNDI with name name.
 javax.naming.InitialContext createInitialContext()
          Returns an InitialContext with correct properties from the JMS Provider.
 void createQueue(java.lang.String name)
          Creates a Queue and makes it available from JNDI with name name.
 void createQueueConnectionFactory(java.lang.String name)
          Creates a QueueConnectionFactory and makes it available from JNDI with name name.
 void createTopic(java.lang.String name)
          Creates a Topic and makes it available from JNDI with name name.
 void createTopicConnectionFactory(java.lang.String name)
          Creates a TopicConnectionFactory and makes it available from JNDI with name name.
 void deleteConnectionFactory(java.lang.String name)
          Removes the ConnectionFactory of name name from JNDI and deletes it
 void deleteQueue(java.lang.String name)
          Removes the Queue of name name from JNDI and deletes it
 void deleteQueueConnectionFactory(java.lang.String name)
          Removes the QueueConnectionFactory of name name from JNDI and deletes it
 void deleteTopic(java.lang.String name)
          Removes the Topic of name name from JNDI and deletes it
 void deleteTopicConnectionFactory(java.lang.String name)
          Removes the TopicConnectionFactory of name name from JNDI and deletes it
 java.lang.String getName()
          Returns the name of the JMS Provider.
 

Method Detail

getName

java.lang.String getName()
Returns the name of the JMS Provider.

Returns:
name of the JMS Provider

createInitialContext

javax.naming.InitialContext createInitialContext()
                                                 throws javax.naming.NamingException
Returns an InitialContext with correct properties from the JMS Provider.

Returns:
an InitialContext with correct properties from the JMS Provider.
Throws:
javax.naming.NamingException

createConnectionFactory

void createConnectionFactory(java.lang.String name)
Creates a ConnectionFactory and makes it available from JNDI with name name.

Parameters:
name - JNDI name of the ConnectionFactory
Since:
JMS 1.1

createQueueConnectionFactory

void createQueueConnectionFactory(java.lang.String name)
Creates a QueueConnectionFactory and makes it available from JNDI with name name.

Parameters:
name - JNDI name of the QueueConnectionFactory

createTopicConnectionFactory

void createTopicConnectionFactory(java.lang.String name)
Creates a TopicConnectionFactory and makes it available from JNDI with name name.

Parameters:
name - JNDI name of the TopicConnectionFactory

createQueue

void createQueue(java.lang.String name)
Creates a Queue and makes it available from JNDI with name name.

Parameters:
name - JNDI name of the Queue

createTopic

void createTopic(java.lang.String name)
Creates a Topic and makes it available from JNDI with name name.

Parameters:
name - JNDI name of the Topic

deleteQueue

void deleteQueue(java.lang.String name)
Removes the Queue of name name from JNDI and deletes it

Parameters:
name - JNDI name of the Queue

deleteTopic

void deleteTopic(java.lang.String name)
Removes the Topic of name name from JNDI and deletes it

Parameters:
name - JNDI name of the Topic

deleteConnectionFactory

void deleteConnectionFactory(java.lang.String name)
Removes the ConnectionFactory of name name from JNDI and deletes it

Parameters:
name - JNDI name of the ConnectionFactory
Since:
JMS 1.1

deleteQueueConnectionFactory

void deleteQueueConnectionFactory(java.lang.String name)
Removes the QueueConnectionFactory of name name from JNDI and deletes it

Parameters:
name - JNDI name of the QueueConnectionFactory

deleteTopicConnectionFactory

void deleteTopicConnectionFactory(java.lang.String name)
Removes the TopicConnectionFactory of name name from JNDI and deletes it

Parameters:
name - JNDI name of the TopicConnectionFactory


Copyright © 2011 JBoss, A division of Red Hat. All Rights Reserved.