|
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 :
... Aliases ... ChannelManager ... ChannelListener (only TimeInterval parameter) ... Registry ... QueueManager ... Preload
This class extends HttpServlet, the servlet base class.
------------------------------------------------------------------------------
Example configuration data fields : Fields=Aliases (ascii)EventLog=examples.eventLog.LogToDiskFile (ascii)Network=com.ibm.mqe.adapters.MQeTcpipHttpAdapter (ascii)QueueManager=com.ibm.mqe.MQeQueueManager (ascii)Trace=com.ibm.mqe.trace.MQeTrace (ascii)MsgLog=com.ibm.mqe.adapters.MQeDiskFieldsAdapter Fields=ChannelManager (int)MaxChannels=0 Fields=Listener (int)TimeInterval=300 Fields=QueueManager (ascii)Name=ServerQMgr Fields=Registry (ascii)RegType=FileRegistry (ascii)Path=.\ExampleQM\Registry\ (ascii)PrivRegPIN=12345678 See ExampleMQeServer.ini for an example startup paramters file
Field Summary | |
protected MQeChannelManager |
channelManager
|
protected MQeChannelTimer |
channelTimer
|
java.lang.String |
defaultStartupInifile
|
protected java.util.Hashtable |
loadTable
|
protected MQe |
mqe
|
protected MQeQueueManager |
queueManager
|
static java.lang.String |
Section_ChannelManager
|
static short[] |
version
|
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. |
MQeChannelManager |
getChannelManager()
Return a reference to the channel manager. |
MQeChannelTimer |
getChannelTimer()
Return a reference to the channel timer. |
java.util.Hashtable |
getLoadTable()
Return a reference to the load table. |
MQeQueueManager |
getQueueManager()
Return a reference to the queue manager. |
void |
init(javax.servlet.ServletConfig sc)
Servlet Initialisation. |
static MQeChannelManager |
processChannelManager(MQeFields sections)
Process the ChannelManager section of the configuration data. |
void |
read(java.io.InputStream in,
byte[] data,
int bytes)
Read a number of bytes from an 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 static final java.lang.String Section_ChannelManager
public java.lang.String defaultStartupInifile
protected MQe mqe
protected MQeChannelManager channelManager
protected MQeQueueManager queueManager
protected MQeChannelTimer channelTimer
protected java.util.Hashtable loadTable
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 MQeChannelManager getChannelManager()
public MQeChannelTimer getChannelTimer()
public java.util.Hashtable getLoadTable()
public MQeQueueManager getQueueManager()
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 static MQeChannelManager processChannelManager(MQeFields sections) throws java.lang.Exception
[ChannelManager] Parameters for the channel manager (int)MaxChannels=..... max number of concurrent channels
sections
- MqeFields object
java.lang.Exception
public void read(java.io.InputStream in, byte[] data, int bytes) throws java.io.IOException
in
- InputStream, the input streamdata
- byte array to fillbytes
- 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 |