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.
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
ManagerServlet() |
Modifier and Type | Method and Description |
---|---|
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
|
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
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