org.objectweb.jtests.providers.admin
Class JBossMQAdmin

java.lang.Object
  extended byorg.objectweb.jtests.providers.admin.JBossMQAdmin
All Implemented Interfaces:
Admin (src)

public class JBossMQAdmin
extends java.lang.Object
implements Admin (src)


Constructor Summary
JBossMQAdmin()
           
 
Method Summary
 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 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JBossMQAdmin

public JBossMQAdmin()
Method Detail

getName

public java.lang.String getName()
Description copied from interface: Admin (src)
Returns the name of the JMS Provider.

Specified by:
getName in interface Admin (src)
Returns:
name of the JMS Provider

createInitialContext

public javax.naming.InitialContext createInitialContext()
                                                 throws javax.naming.NamingException
Description copied from interface: Admin (src)
Returns an InitialContext with correct properties from the JMS Provider.

Specified by:
createInitialContext in interface Admin (src)
Returns:
an InitialContext with correct properties from the JMS Provider.
Throws:
javax.naming.NamingException

createQueueConnectionFactory

public void createQueueConnectionFactory(java.lang.String name)
Description copied from interface: Admin (src)
Creates a QueueConnectionFactory and makes it available from JNDI with name name.

Specified by:
createQueueConnectionFactory in interface Admin (src)
Parameters:
name - JNDI name of the QueueConnectionFactory

deleteQueueConnectionFactory

public void deleteQueueConnectionFactory(java.lang.String name)
Description copied from interface: Admin (src)
Removes the QueueConnectionFactory of name name from JNDI and deletes it

Specified by:
deleteQueueConnectionFactory in interface Admin (src)
Parameters:
name - JNDI name of the Queue

createTopicConnectionFactory

public void createTopicConnectionFactory(java.lang.String name)
Description copied from interface: Admin (src)
Creates a TopicConnectionFactory and makes it available from JNDI with name name.

Specified by:
createTopicConnectionFactory in interface Admin (src)
Parameters:
name - JNDI name of the TopicConnectionFactory

deleteTopicConnectionFactory

public void deleteTopicConnectionFactory(java.lang.String name)
Description copied from interface: Admin (src)
Removes the TopicConnectionFactory of name name from JNDI and deletes it

Specified by:
deleteTopicConnectionFactory in interface Admin (src)
Parameters:
name - JNDI name of the Queue

createQueue

public void createQueue(java.lang.String name)
Description copied from interface: Admin (src)
Creates a Queue and makes it available from JNDI with name name.

Specified by:
createQueue in interface Admin (src)
Parameters:
name - JNDI name of the Queue

createTopic

public void createTopic(java.lang.String name)
Description copied from interface: Admin (src)
Creates a Topic and makes it available from JNDI with name name.

Specified by:
createTopic in interface Admin (src)
Parameters:
name - JNDI name of the Topic

deleteQueue

public void deleteQueue(java.lang.String name)
Description copied from interface: Admin (src)
Removes the Queue of name name from JNDI and deletes it

Specified by:
deleteQueue in interface Admin (src)
Parameters:
name - JNDI name of the Queue

deleteTopic

public void deleteTopic(java.lang.String name)
Description copied from interface: Admin (src)
Removes the Topic of name name from JNDI and deletes it

Specified by:
deleteTopic in interface Admin (src)
Parameters:
name - JNDI name of the Topic