Package org.apache.axis.transport.jms
Class SimpleJMSListener
java.lang.Object
org.apache.axis.transport.jms.SimpleJMSListener
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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final HashMapcreateCFMap(Options options) static final HashMapcreateConnectorMap(Options options) protected static AxisServerprotected JMSConnectorstatic voidvoidonMessage(javax.jms.Message message) This method is called asynchronously whenever a message arrives.static voidvoidshutdown()voidstart()
-
Field Details
-
log
protected static org.apache.commons.logging.Log log
-
-
Constructor Details
-
Method Details
-
getAxisServer
-
getConnector
-
onMessage
public void onMessage(javax.jms.Message message) This method is called asynchronously whenever a message arrives.- Parameters:
message-
-
start
- Throws:
Exception
-
shutdown
- Throws:
Exception
-
createConnectorMap
-
createCFMap
- Throws:
IOException
-
main
- Throws:
Exception
-
printUsage
public static void printUsage()
-