org.apache.commons.messagelet
Class ManagerServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by org.apache.commons.messagelet.ManagerServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ManagerServlet
extends javax.servlet.GenericServlet

ManagerServlet manages the initialisation and destruction of the Messenger connections and use of MessageListener beans for a given ServletContext.

Version:
$Revision: 155459 $
Author:
James Strachan
See Also:
Serialized Form

Constructor Summary
ManagerServlet()
           
 
Method Summary
protected  MessengerManager createMessengerManager()
           
protected  SubscriptionList createSubscriptionList()
           
 void destroy()
           
 SubscriptionManager getSubscriptionManager()
           
protected  String getURLResource(String key, String description)
           
protected  void handleJMSException(String message, javax.jms.JMSException exception)
          Allows derived servlets to handle JMS exceptions differently, such as ignoring certain kinds of exceptions or performing custom logging etc.
 void init()
           
 boolean isContinueOnSubscriptionException()
           
 void service(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
           
 void setContinueOnSubscribeException(boolean continueOnSubscribeException)
          Sets whether exceptions occurring during subscriptions on startup should terminate the initialization
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagerServlet

public ManagerServlet()
Method Detail

getSubscriptionManager

public SubscriptionManager getSubscriptionManager()

init

public void init()
          throws javax.servlet.ServletException
Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Servlet
Overrides:
destroy in class javax.servlet.GenericServlet

service

public void service(javax.servlet.ServletRequest request,
                    javax.servlet.ServletResponse response)
             throws javax.servlet.ServletException
Specified by:
service in interface javax.servlet.Servlet
Specified by:
service in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException

isContinueOnSubscriptionException

public boolean isContinueOnSubscriptionException()

setContinueOnSubscribeException

public void setContinueOnSubscribeException(boolean continueOnSubscribeException)
Sets whether exceptions occurring during subscriptions on startup should terminate the initialization


createMessengerManager

protected MessengerManager createMessengerManager()
                                           throws javax.servlet.ServletException
Throws:
javax.servlet.ServletException

createSubscriptionList

protected SubscriptionList createSubscriptionList()
                                           throws javax.servlet.ServletException
Throws:
javax.servlet.ServletException

getURLResource

protected String getURLResource(String key,
                                String description)
                         throws javax.servlet.ServletException
Throws:
javax.servlet.ServletException

handleJMSException

protected void handleJMSException(String message,
                                  javax.jms.JMSException exception)
                           throws javax.servlet.ServletException
Allows derived servlets to handle JMS exceptions differently, such as ignoring certain kinds of exceptions or performing custom logging etc.

Throws:
javax.servlet.ServletException


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