net.sf.xbus.technical.mq
Class MQSender

java.lang.Object
  extended by net.sf.xbus.technical.mq.MQSender
All Implemented Interfaces:
Sender, TextSender

public class MQSender
extends java.lang.Object
implements Sender, TextSender

The MQSender sends a message to a message-queue.


Constructor Summary
MQSender(XBUSSystem destination)
          Opens the connection to the queue-manager.
 
Method Summary
 java.lang.String execute(java.lang.String function, java.lang.String callData)
          Sends the callData to the message-queue.
 java.lang.String getType()
          A Sender can send data either as a String or as an Object to the neighboring system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MQSender

public MQSender(XBUSSystem destination)
         throws XException
Opens the connection to the queue-manager. It uses the MQConnection.

Throws:
XException
Method Detail

execute

public java.lang.String execute(java.lang.String function,
                                java.lang.String callData)
                         throws XException
Sends the callData to the message-queue. function is ignored.

Specified by:
execute in interface TextSender
Parameters:
function - used by some senders
callData - the data that shall be send to the neighbor system
Returns:
null
Throws:
XException - if something goes wrong

getType

public java.lang.String getType()
Description copied from interface: Sender
A Sender can send data either as a String or as an Object to the neighboring system.
When working with Strings the Sender must fulfill two preconditions: When working with Objects the Sender must also fulfill two preconditions:

Specified by:
getType in interface Sender