com.softwareag.sagd.PMQServer
Class ToStreamStdoutDispatcher

java.lang.Object
  extended by com.softwareag.sagd.PMQServer.PMQInterfaceDispatcher
      extended by com.softwareag.sagd.PMQServer.ToStreamStdoutDispatcher

public class ToStreamStdoutDispatcher
extends PMQInterfaceDispatcher

This dispatcher class implements the stream interface. Incoming streams are written to standard output.

Version:
$Revision: 1.2 $

Constructor Summary
ToStreamStdoutDispatcher()
          Creates object
 
Method Summary
 boolean doDispatch(java.io.InputStream receivedMessage, java.io.OutputStream replyMessage)
          Receives messages as stream and writes to standard output.
 void doInit()
          Initialize object.
 void doRelease()
          Release all resources.
 
Methods inherited from class com.softwareag.sagd.PMQServer.PMQInterfaceDispatcher
doDispatch, doInit, doLog, doLog, getLifetime, getPersistentStatusFlagChanged, getStatusPersistence, isSingleMessageDispatcher, isStreamSendResponseDispatcher, setLifetime, setSingleMessageDispatcher, setStatusPersistence, setStreamSendResponseDispatcher
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToStreamStdoutDispatcher

public ToStreamStdoutDispatcher()
Creates object

Method Detail

doInit

public void doInit()
            throws java.lang.Throwable
Initialize object.

Overrides:
doInit in class PMQInterfaceDispatcher
Throws:
java.lang.Throwable

doDispatch

public boolean doDispatch(java.io.InputStream receivedMessage,
                          java.io.OutputStream replyMessage)
Receives messages as stream and writes to standard output.

Overrides:
doDispatch in class PMQInterfaceDispatcher
Parameters:
receivedMessage - Incoming message
replyMessage - Outgoing message
Returns:
true to commit the message. false does a backout and stops the server.

doRelease

public void doRelease()
Release all resources.

Overrides:
doRelease in class PMQInterfaceDispatcher


Copyright © 2004-2008 Software AG. All Rights Reserved.