|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.figure8.join.core.messaging.ActiveMQDestinationResolver
public class ActiveMQDestinationResolver
This is an implementation of JMSDestinationResolver for resolving
ActiveMQ provider destinations. It uses ActiveMQ Jndi integration to resolve
remote destinations.
| Field Summary | |
|---|---|
static java.lang.String |
AMQ_NAMING_FACTORY
Value of naming factory for ActiveMQ Jndi implementation |
static java.lang.String |
AMQ_QUEUE_PREFIX
Name of ActiveMQ properties prefix for queue names |
static java.lang.String |
AMQ_TOPIC_PREFIX
Name of ActiveMQ properties preix for topic names |
protected ApplicationConfig |
configuration
The application configuration to use for acquiring destinations |
| Constructor Summary | |
|---|---|
ActiveMQDestinationResolver()
Creates a new instance of ActiveMQDestinationResolver |
|
| Method Summary | |
|---|---|
protected java.lang.Object |
resolveLocalObject(java.lang.String name)
Resolve destination as a locally available object through container context. |
javax.jms.Queue |
resolveQueue(java.lang.String name)
Resolve a JMS queue using its name. |
protected java.lang.Object |
resolveRemoteObject(java.lang.String name,
boolean isQueue)
Resolve destination as a remote object bound into a Jndi tree. |
javax.jms.Topic |
resolveTopic(java.lang.String name)
Resolve a JMS topic using its name. |
void |
setApplicationConfig(ApplicationConfig configuration)
Set the current application conifguration to this resolver |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String AMQ_NAMING_FACTORY
public static final java.lang.String AMQ_QUEUE_PREFIX
public static final java.lang.String AMQ_TOPIC_PREFIX
protected ApplicationConfig configuration
| Constructor Detail |
|---|
public ActiveMQDestinationResolver()
| Method Detail |
|---|
public void setApplicationConfig(ApplicationConfig configuration)
setApplicationConfig in interface JMSDestinationResolverconfiguration - The application configured settings
public javax.jms.Queue resolveQueue(java.lang.String name)
throws InfrastructureException,
InvalidParameterException
resolveQueue in interface JMSDestinationResolvername - The name of the queue to retrive
InfrastructureException - if acquisition context (Jndi for example) is not available
InvalidParameterException - if the specified destination name is unknown by resolution system
public javax.jms.Topic resolveTopic(java.lang.String name)
throws InfrastructureException,
InvalidParameterException
resolveTopic in interface JMSDestinationResolvername - The name of the topic to retrieve
InfrastructureException - if acquisition context (Jndi for example) is not available
InvalidParameterException - if the specified destination name is unknown by resolution system
protected java.lang.Object resolveLocalObject(java.lang.String name)
throws InfrastructureException,
InvalidParameterException
name - The name of destination to lookup
InfrastructureException
InvalidParameterException
protected java.lang.Object resolveRemoteObject(java.lang.String name,
boolean isQueue)
throws InfrastructureException,
InvalidParameterException
name - The jndi name of destination to lookupisQueue - Flag telling telling whether destination is a queue or a topic
InfrastructureException
InvalidParameterException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||