|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.GenericServlet
org.apache.commons.messagelet.ManagerServlet
public class ManagerServlet
ManagerServlet
manages the
initialisation and destruction of the Messenger connections
and use of MessageListener beans for a given ServletContext.
Field Summary | |
---|---|
private boolean |
continueOnSubscribeException
Whether exceptions occurring during subscriptions on startup should terminate the initialization |
private static java.lang.String |
KEY_CONNECTIONS
|
private static java.lang.String |
KEY_SUBSCRIPTIONS
|
private static boolean |
USE_HTTP_SERVLETS
Should HTTP servlets be used or generic servlets. |
Constructor Summary | |
---|---|
ManagerServlet()
|
Method Summary | |
---|---|
protected MessengerManager |
createMessengerManager()
|
protected SubscriptionList |
createSubscriptionList()
|
void |
destroy()
|
SubscriptionManager |
getSubscriptionManager()
|
protected java.lang.String |
getURLResource(java.lang.String key,
java.lang.String description)
|
protected void |
handleJMSException(java.lang.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 |
Field Detail |
---|
private static final boolean USE_HTTP_SERVLETS
private static final java.lang.String KEY_CONNECTIONS
private static final java.lang.String KEY_SUBSCRIPTIONS
private boolean continueOnSubscribeException
Constructor Detail |
---|
public ManagerServlet()
Method Detail |
---|
public SubscriptionManager getSubscriptionManager()
public void init() throws javax.servlet.ServletException
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
public void service(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response) throws javax.servlet.ServletException
service
in interface javax.servlet.Servlet
service
in class javax.servlet.GenericServlet
javax.servlet.ServletException
public boolean isContinueOnSubscriptionException()
public void setContinueOnSubscribeException(boolean continueOnSubscribeException)
protected MessengerManager createMessengerManager() throws javax.servlet.ServletException
javax.servlet.ServletException
protected SubscriptionList createSubscriptionList() throws javax.servlet.ServletException
javax.servlet.ServletException
protected java.lang.String getURLResource(java.lang.String key, java.lang.String description) throws javax.servlet.ServletException
javax.servlet.ServletException
protected void handleJMSException(java.lang.String message, javax.jms.JMSException exception) throws javax.servlet.ServletException
javax.servlet.ServletException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |