|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.exolab.jmscts.core.DestinationHelper
Helper for creating, destroying and comparing Destination objects
| Method Summary | |
static javax.jms.Destination |
create(javax.jms.Session session)
Create a temporary destination |
static javax.jms.Destination |
create(java.lang.String name,
boolean queue,
Administrator admin)
Create an administered destination for the supplied name. |
static javax.jms.Destination |
create(TestContext context,
java.lang.String name)
Create a destination for the supplied name, using a test context If the context specifies a messaging behaviour, then that will used to determine if an administered or temporary destination will be created, otherwise an administered destination will be created. |
static void |
destroy(javax.jms.Destination destination,
Administrator admin)
Destroy a destination |
static void |
destroy(java.lang.String name,
Administrator admin)
Destroy the named destination, if it exists |
static void |
destroy(TestContext context,
javax.jms.Destination destination)
Destroy a destination if it exists, using a test context |
static boolean |
equal(javax.jms.Destination a,
javax.jms.Destination b)
Compares two destinations for equality |
static java.lang.String |
getName(javax.jms.Destination destination)
Returns the name of a destination |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static javax.jms.Destination create(TestContext context,
java.lang.String name)
throws javax.jms.JMSException,
javax.naming.NamingException
context - the test contextname - the destination namejavax.jms.JMSException - if the destination cannot be createdjavax.naming.NamingException - if the new administered destination cannot be
located in JNDI
public static javax.jms.Destination create(java.lang.String name,
boolean queue,
Administrator admin)
throws javax.jms.JMSException,
javax.naming.NamingException
name - the name of the destinationqueue - true if the destination is a Queueadmin - the JMS provider administration interfacejavax.jms.JMSException - if the destination cannot be createdjavax.naming.NamingException - if the new administered destination cannot be
be located in JNDI
public static javax.jms.Destination create(javax.jms.Session session)
throws javax.jms.JMSException
session - the session to create the destination withjavax.jms.JMSException - if the destination cannot be created
public static void destroy(TestContext context,
javax.jms.Destination destination)
throws javax.jms.JMSException
context - the test contextdestination - the destination to destroyjavax.jms.JMSException - if the destination cannot be destroyed
public static void destroy(java.lang.String name,
Administrator admin)
throws javax.jms.JMSException
name - the name of the destinationadmin - the provider administration interface to remove the
destination with, if the destination existsjavax.jms.JMSException - if the destination cannot be destroyed
public static void destroy(javax.jms.Destination destination,
Administrator admin)
throws javax.jms.JMSException
destination - the destination to destroyadmin - the provider administration interface to remove the
destination with, if the destination is administered and existsjavax.jms.JMSException - if the destination cannot be destroyed
public static boolean equal(javax.jms.Destination a,
javax.jms.Destination b)
throws javax.jms.JMSException
a - the first destination to compareb - the second destination to comparejavax.jms.JMSException - if the destination names cannot be accessed
public static java.lang.String getName(javax.jms.Destination destination)
throws javax.jms.JMSException
destination - the destinationjavax.jms.JMSException - if the name cannot be accessed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||