|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface specifies methods for obtaining and manipulating
administered objects managed by the JMS provider.
Although the JMS specification states that administered objects should
be accessible via JNDI, not all providers implement this, and for those
that do, there is no standard registration scheme (eg. some use LDAP).
This interface therefore avoids making assumptions on how administered
objects are accessed.
Provider
Method Summary | |
void |
createDestination(java.lang.String name,
boolean queue)
Create an administered destination |
boolean |
destinationExists(java.lang.String name)
Determines if an administered destination exists |
void |
destroyDestination(java.lang.String name)
Destroy an administered destination |
java.lang.String |
getQueueConnectionFactory()
Returns the name of the QueueConnectionFactory bound in JNDI |
java.lang.String |
getTopicConnectionFactory()
Returns the name of the TopicConnectionFactory bound in JNDI |
java.lang.String |
getXAQueueConnectionFactory()
Returns the name of the XAQueueConnectionFactory bound in JNDI |
java.lang.String |
getXATopicConnectionFactory()
Returns the name of the XATopicConnectionFactory bound in JNDI |
java.lang.Object |
lookup(java.lang.String name)
Look up the named administered object in JNDI |
Method Detail |
public java.lang.String getQueueConnectionFactory()
public java.lang.String getTopicConnectionFactory()
public java.lang.String getXAQueueConnectionFactory()
public java.lang.String getXATopicConnectionFactory()
public java.lang.Object lookup(java.lang.String name) throws javax.naming.NamingException
name
- the name that the administered object is bound tojavax.naming.NamingException
- if the object is not bound, or the lookup failspublic void createDestination(java.lang.String name, boolean queue) throws javax.jms.JMSException
name
- the destination namequeue
- if true, create a queue, else create a topicjavax.jms.JMSException
- if the destination cannot be createdpublic void destroyDestination(java.lang.String name) throws javax.jms.JMSException
name
- the destination namejavax.jms.JMSException
- if the destination cannot be destroyedpublic boolean destinationExists(java.lang.String name) throws javax.jms.JMSException
name
- the destination nametrue
if the destination existsjavax.jms.JMSException
- for any internal JMS provider error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |