org.apache.commons.messagelet.impl
Class MessageServletDispatcher

java.lang.Object
  extended by org.apache.commons.messagelet.MessageDrivenObjectSupport
      extended by org.apache.commons.messagelet.impl.MessageServletDispatcher
All Implemented Interfaces:
javax.jms.MessageListener, MessageDrivenObject, MessengerListener

public class MessageServletDispatcher
extends MessageDrivenObjectSupport
implements MessengerListener

MessageDispatcher dispatches JMS Messages into a Servlet engine for procesing.

Version:
$Revision: 155459 $
Author:
James Strachan

Constructor Summary
MessageServletDispatcher()
           
MessageServletDispatcher(String path)
           
 
Method Summary
 String getPath()
          Getter for property path.
protected  void handleException(javax.jms.Message message, Throwable t)
           
 void init()
          This method allows the init() method to be overriden without having to call the super.init( ServletContext ) method first.
 void onMessage(javax.jms.Message message)
          Process the incoming JMS Message.
 void setMessenger(Messenger messenger)
          Called whenever this MessageListener is added to a Messenger via the addListener() method to associate this MessageListener with a Messenger instance..
 void setPath(String path)
          Setter for property path.
 
Methods inherited from class org.apache.commons.messagelet.MessageDrivenObjectSupport
destroy, getLog, getServletContext, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageServletDispatcher

public MessageServletDispatcher()

MessageServletDispatcher

public MessageServletDispatcher(String path)
Method Detail

init

public void init()
          throws javax.servlet.ServletException
Description copied from class: MessageDrivenObjectSupport
This method allows the init() method to be overriden without having to call the super.init( ServletContext ) method first. This is similar to the init() method in GenericServlet.

Overrides:
init in class MessageDrivenObjectSupport
Throws:
javax.servlet.ServletException

setMessenger

public void setMessenger(Messenger messenger)
Description copied from interface: MessengerListener
Called whenever this MessageListener is added to a Messenger via the addListener() method to associate this MessageListener with a Messenger instance..

Specified by:
setMessenger in interface MessengerListener

onMessage

public void onMessage(javax.jms.Message message)
Process the incoming JMS Message.

Specified by:
onMessage in interface javax.jms.MessageListener
Parameters:
message - is the message to be processed

getPath

public String getPath()
Getter for property path.

Returns:
Value of property path.

setPath

public void setPath(String path)
Setter for property path.

Parameters:
path - New value of property path.

handleException

protected void handleException(javax.jms.Message message,
                               Throwable t)


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.