public class JMSHandler extends BaseRouterHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONFACTORYJNDINAME |
static java.lang.String |
DESTINATIONTYPE |
static java.lang.String |
DESTJNDINAME |
static java.lang.String |
INITIALCNTXFACTORY |
static java.lang.String |
ISCOMPRESS |
static java.lang.String |
ISTEXT |
static java.lang.String |
JMSEXIT |
static java.lang.String |
JMSPROPS |
static java.lang.String |
PROVIDERPASSWORD |
static java.lang.String |
PROVIDERURL |
static java.lang.String |
PROVIDERUSER |
BIDICONFIG, PASSWORD, USERNAME
Constructor and Description |
---|
JMSHandler() |
JMSHandler(MaxEndPointInfo endPointInfo) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getConFactoryName()
looks for CON_FACTORY_JNDI_NAME from the Map and returns the Queue Connection Factory JNDI Name from the map.
|
java.lang.String |
getDestinationName()
looks for DEST_QUEUE_JNDI_NAME from the Map and returns the Queue JNDI Name from the map.
|
java.lang.String |
getDestinationType()
The Destination type - javax.jms.Queue/javax.jms.Topic.
|
java.lang.String |
getIniConFactory()
looks for INITIAL_CON_FACTORY from the Map and returns the Initial Context Factory from the map.
|
java.lang.String |
getJMSExit()
looks for CON_FACTORY_JNDI_NAME from the Map and returns the Queue Connection Factory JNDI Name from the map.
|
java.util.List<RouterPropsInfo> |
getProperties() |
java.lang.String |
getProviderPassword()
The Password of the provider
|
java.lang.String |
getProviderUrl()
looks for PROVIDER_URL from the Map and returns the Provider Url from the map.
|
java.lang.String |
getProviderUsername()
The username of the provider
|
java.lang.String |
getUsername()
The username for accessing the destination.
|
byte[] |
invoke(java.util.Map<java.lang.String,?> metaData,
byte[] data)
Sends / Writes data to a given Queue.
|
boolean |
isCompress()
looks for ISCOMPRESS from the Map and returns a boolean from the map.
|
boolean |
isText() |
public static final java.lang.String JMSEXIT
public static final java.lang.String CONFACTORYJNDINAME
public static final java.lang.String DESTJNDINAME
public static final java.lang.String INITIALCNTXFACTORY
public static final java.lang.String PROVIDERURL
public static final java.lang.String ISCOMPRESS
public static final java.lang.String ISTEXT
public static final java.lang.String DESTINATIONTYPE
public static final java.lang.String PROVIDERUSER
public static final java.lang.String PROVIDERPASSWORD
public static final java.lang.String JMSPROPS
public JMSHandler(MaxEndPointInfo endPointInfo)
public JMSHandler()
public byte[] invoke(java.util.Map<java.lang.String,?> metaData, byte[] data) throws MXException
invoke
in interface RouterHandler
invoke
in class BaseRouterHandler
destinationName
- Name of the External SysteminterfaceName
- interfaceName of this transaciondata
- the xml transaction in byte arrayMXException
- if there's a problem in writing data to queue.RouterHandler.invoke(java.util.Map, byte[])
public java.util.List<RouterPropsInfo> getProperties()
public java.lang.String getJMSExit()
public java.lang.String getConFactoryName()
public java.lang.String getDestinationName()
public java.lang.String getIniConFactory()
public java.lang.String getProviderUrl()
public boolean isCompress() throws java.lang.Exception
java.lang.Exception
public java.lang.String getDestinationType()
public java.lang.String getUsername()
public java.lang.String getProviderUsername()
public java.lang.String getProviderPassword()
public boolean isText()