|
JTR 5.0 API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjtr.config.jms.JMSConfig
public class JMSConfig
This class is the object oriented representation of the content of the
jtx.xml <jms> element. It provides:
1. a unique name identifying the current JMS configuration
2. a set of queues
3. a set of topics
4. a set of connection factories
Both queues and topics are shaped as JMSDestination instances,
while connection factories are represented by means of
JMSConnectionFactory instances.
jtr.config.JMSConnectionFactory,
Serialized Form| Constructor Summary | |
|---|---|
JMSConfig()
The default constructor. |
|
| Method Summary | |
|---|---|
void |
addQueue(java.lang.String jndiName,
java.lang.String propertyName)
Add a queue to the set of queues available with this JMS configuration |
void |
addTopic(java.lang.String jndiName,
java.lang.String propertyName)
Add a topic to the set of topics available with this JMS configuration |
java.util.Collection<JMSConnectionFactory> |
getConnectionFactories()
Get the connection factories available with the current JMS configuration |
java.util.Collection<JMSDestination> |
getQueues()
Return the set of confiured queues. |
java.util.Collection<JMSDestination> |
getTopics()
Return the set of configured topics |
java.lang.String |
getUniqueName()
Get the unique name of this JMS configuration. |
void |
setConnectionFactories(JMSFactories jmsF)
Set the connection factories available with the current JMS configuration |
void |
setUniqueName(java.lang.String name)
Set the unique name of this JMS configuration. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JMSConfig()
| Method Detail |
|---|
public void setUniqueName(java.lang.String name)
name - The unique namepublic java.lang.String getUniqueName()
public void addQueue(java.lang.String jndiName,
java.lang.String propertyName)
jndiName - The queue's JNDI namepropertyName - The name of the property exposed by the runner that will hold
the queuepublic java.util.Collection<JMSDestination> getQueues()
public void addTopic(java.lang.String jndiName,
java.lang.String propertyName)
jndiName - The topic's JNDI namepropertyName - Stringpublic java.util.Collection<JMSDestination> getTopics()
public void setConnectionFactories(JMSFactories jmsF)
jmsF - The connection factoriespublic java.util.Collection<JMSConnectionFactory> getConnectionFactories()
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
The JTR Project is licensed under GPL version 2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||