|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.xbus.technical.mq.MQSender
public class MQSender
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 |
---|
public MQSender(XBUSSystem destination) throws XException
MQConnection
.
XException
Method Detail |
---|
public java.lang.String execute(java.lang.String function, java.lang.String callData) throws XException
callData
to the message-queue.
function
is ignored.
execute
in interface TextSender
function
- used by some senderscallData
- the data that shall be send to the neighbor system
null
XException
- if something goes wrongpublic java.lang.String getType()
Sender
Sender
can send data either as a String
or as an Object
to the neighboring system.Strings
the Sender must fulfill two
preconditions:
getType
returns Constants.TYPE_TEXT
TextSender
Objects
the Sender must also fulfill two
preconditions:
getType
returns Constants.TYPE_OBJECT
ObjectSender
getType
in interface Sender
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |