|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.servlet.GenericServlet | +--javax.servlet.http.HttpServlet | +--examples.queuemanager.MQeServlet
To provide a simple MQe servlet.
Components configured on a servlet at startup are :
... Listener (only TimeInterval parameter) ... Registry ... QueueManager
This class extends HttpServlet, the servlet base class.
------------------------------------------------------------------------------
Example configuration data fields : [Listener] (int)TimeInterval=300000 (int)MaxChannels=0 (ascii)Name=ServletListener [QueueManager] (ascii)Name=ServerQMgr [Registry] (ascii)LocalRegType=FileRegistry (ascii)DirName=c:\la000\ServerQMgr\Registry\ (ascii)Adapter=com.ibm.mqe.adapters.MQeDiskFieldsAdapter See ExampleMQeServer.ini for an example startup paramters file
Field Summary | |
java.lang.String |
defaultQueueStore
|
java.lang.String |
defaultStartupInifile
|
protected MQe |
mqe
|
protected MQeQueueManager |
queueManager
|
static short[] |
version
|
protected MQeServletWrapper |
wrapper
|
Constructor Summary | |
MQeServlet()
|
Method Summary | |
void |
destroy()
called when a request is made to stop the servlet. |
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handle POST. |
void |
init(javax.servlet.ServletConfig sc)
Servlet Initialisation. |
byte[] |
read(java.io.InputStream in,
int bytes)
Read the input stream. |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, doOptions, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static short[] version
public java.lang.String defaultStartupInifile
public java.lang.String defaultQueueStore
protected MQe mqe
protected MQeServletWrapper wrapper
protected MQeQueueManager queueManager
Constructor Detail |
public MQeServlet()
Method Detail |
public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
doPost
in class javax.servlet.http.HttpServlet
request
- HttpServletRequest objectresponse
- HttpServletResponse object
java.io.IOException
public void init(javax.servlet.ServletConfig sc) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
sc
- ServletConfig object
javax.servlet.ServletException
public byte[] read(java.io.InputStream in, int bytes) throws java.io.IOException
in
- InputStream, the input streambytes
- An integer, number of bytes to read.
java.io.IOException
- The exception description.
|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |