|
JTR 5.0 API Documentation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjtr.jms.AdministeredObjectsLocator
public class AdministeredObjectsLocator
This static class exposes methods useful for retrieving JMS administered
objects.
They include:
1. ConnectionFactory
2. QueueConnectionFactory
3. TopicConnectionFactory
4. Destination
5. Queue
6. Topic
The retrieval is based on the information provided with the
enterprise
jtr-configuration element.
Constructor Summary | |
---|---|
AdministeredObjectsLocator()
|
Method Summary | |
---|---|
static javax.jms.ConnectionFactory |
getConnectionFactory(java.lang.String jndiName,
java.util.Hashtable environment)
Retrieves a ConnectionFactory using the provided JNDI
name.The initial context is created according to the input environment : it represents the set of properties
specified into the enterprise element of the
jtr.xml configuration file the current
IRunner concrete implementation refers to.Note: this method returns ConnectionFactory
instances, so you should cast them to whatever you might actually need (QueueConnectionFactory, TopicConnectionFactory ). |
static javax.jms.Destination |
getDestination(java.lang.String jndiName,
java.util.Hashtable environment)
Retrieves a Destination using the provided JNDI name.The initial context is created according to the input environment : it represents the set of properties
specified into the enterprise element of the
jtr.xml configuration file the current
IRunner concrete implementation refers to.Note: this method returns Destination instances, so
you should cast them to whatever you might actually need (Queue, Topic ). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AdministeredObjectsLocator()
Method Detail |
---|
public static javax.jms.ConnectionFactory getConnectionFactory(java.lang.String jndiName, java.util.Hashtable environment) throws LocatorException
ConnectionFactory
using the provided JNDI
name.environment
: it represents the set of properties
specified into the enterprise
element of the
jtr.xml
configuration file the current
IRunner
concrete implementation refers to.ConnectionFactory
instances, so you should cast them to whatever you might actually need (QueueConnectionFactory, TopicConnectionFactory
).
jndiName
- The actual name of the JMS administered objectenvironment
- The set of properties required for creating the initial
context
ConnectionFactory
LocatorException
- Something went wrong while retrieving the JMS administered
objectpublic static javax.jms.Destination getDestination(java.lang.String jndiName, java.util.Hashtable environment) throws LocatorException
Destination
using the provided JNDI name.environment
: it represents the set of properties
specified into the enterprise
element of the
jtr.xml
configuration file the current
IRunner
concrete implementation refers to.Destination
instances, so
you should cast them to whatever you might actually need (Queue, Topic
).
jndiName
- The actual name of the JMS administered objectenvironment
- The set of properties required for creating the initial
context
Destination
LocatorException
- Something went wrong while retrieving the JMS administered
object
|
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 |