org.jboss.soa.esb.listeners.jca
Class WMQActivationMapper

java.lang.Object
  extended by org.jboss.soa.esb.listeners.jca.WMQActivationMapper
All Implemented Interfaces:
ActivationMapper

public class WMQActivationMapper
extends java.lang.Object
implements ActivationMapper

Activation mapper implementation for IBM MQ (aka WMQ).

Author:
Kevin Conner

Constructor Summary
WMQActivationMapper()
           
 
Method Summary
 void setDestination(java.util.Map<java.lang.String,java.lang.String> activationConfig, java.lang.String name)
          Initialise the destination name in the activation configuration.
 void setDestinationType(java.util.Map<java.lang.String,java.lang.String> activationConfig, boolean queue)
          Initialise the destination name in the activation configuration.
 void setMaxThreads(java.util.Map<java.lang.String,java.lang.String> activationConfig, java.lang.Integer maxThreads)
          Initialise the destination name in the activation configuration.
 void setMessageSelector(java.util.Map<java.lang.String,java.lang.String> activationConfig, java.lang.String messageSelector)
          Initialise the destination name in the activation configuration.
 void setProviderAdapterJNDI(java.util.Map<java.lang.String,java.lang.String> activationConfig, java.lang.String providerAdapterJNDI)
          Initialise the destination name in the activation configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WMQActivationMapper

public WMQActivationMapper()
Method Detail

setDestination

public void setDestination(java.util.Map<java.lang.String,java.lang.String> activationConfig,
                           java.lang.String name)
                    throws ConfigurationException
Initialise the destination name in the activation configuration.

Specified by:
setDestination in interface ActivationMapper
Parameters:
activationConfig - The current activation configuration.
name - The destination name.
Throws:
ConfigurationException - For invalid configuration.

setProviderAdapterJNDI

public void setProviderAdapterJNDI(java.util.Map<java.lang.String,java.lang.String> activationConfig,
                                   java.lang.String providerAdapterJNDI)
                            throws ConfigurationException
Initialise the destination name in the activation configuration.

Specified by:
setProviderAdapterJNDI in interface ActivationMapper
Parameters:
activationConfig - The current activation configuration.
providerAdapterJNDI - The provider adapter JNDI value or null is not specified.
Throws:
ConfigurationException - For invalid configuration.

setDestinationType

public void setDestinationType(java.util.Map<java.lang.String,java.lang.String> activationConfig,
                               boolean queue)
                        throws ConfigurationException
Initialise the destination name in the activation configuration.

Specified by:
setDestinationType in interface ActivationMapper
Parameters:
activationConfig - The current activation configuration.
queue - True if specifying a JMS Queue, false is specifying a JMS Topic.
Throws:
ConfigurationException - For invalid configuration.

setMessageSelector

public void setMessageSelector(java.util.Map<java.lang.String,java.lang.String> activationConfig,
                               java.lang.String messageSelector)
                        throws ConfigurationException
Initialise the destination name in the activation configuration.

Specified by:
setMessageSelector in interface ActivationMapper
Parameters:
activationConfig - The current activation configuration.
messageSelector - The message selector or null if not specified.
Throws:
ConfigurationException - For invalid configuration.

setMaxThreads

public void setMaxThreads(java.util.Map<java.lang.String,java.lang.String> activationConfig,
                          java.lang.Integer maxThreads)
                   throws ConfigurationException
Initialise the destination name in the activation configuration.

Specified by:
setMaxThreads in interface ActivationMapper
Parameters:
activationConfig - The current activation configuration.
maxThreads - The maximum thread value or null if not specified.
Throws:
ConfigurationException - For invalid configuration.