org.apache.axis.transport.jms

Class SimpleJMSListener

public class SimpleJMSListener extends Object implements MessageListener

SimpleJMSListener implements the javax.jms.MessageListener interface. Its basic purpose is listen asynchronously for messages and to pass them off to SimpleJMSWorker for processing. Note: This is a simple JMS listener that does not pool worker threads and is not otherwise tuned for performance. As such, its intended use is not for production code, but for demos, debugging, and performance profiling.

Author: Jaime Meritt (jmeritt@sonicsoftware.com) Richard Chung (rchung@sonicsoftware.com) Dave Chappell (chappell@sonicsoftware.com)

Field Summary
protected static Loglog
Constructor Summary
SimpleJMSListener(HashMap connectorMap, HashMap cfMap, String destination, String username, String password, boolean doThreads)
Method Summary
static HashMapcreateCFMap(Options options)
static HashMapcreateConnectorMap(Options options)
protected static AxisServergetAxisServer()
protected JMSConnectorgetConnector()
static voidmain(String[] args)
voidonMessage(Message message)
This method is called asynchronously whenever a message arrives.
static voidprintUsage()
voidshutdown()
voidstart()

Field Detail

log

protected static Log log

Constructor Detail

SimpleJMSListener

public SimpleJMSListener(HashMap connectorMap, HashMap cfMap, String destination, String username, String password, boolean doThreads)

Method Detail

createCFMap

public static final HashMap createCFMap(Options options)

createConnectorMap

public static final HashMap createConnectorMap(Options options)

getAxisServer

protected static AxisServer getAxisServer()

getConnector

protected JMSConnector getConnector()

main

public static void main(String[] args)

onMessage

public void onMessage(Message message)
This method is called asynchronously whenever a message arrives.

Parameters: message

printUsage

public static void printUsage()

shutdown

public void shutdown()

start

public void start()
Copyright B) 2005 Apache Web Services Project. All Rights Reserved.