|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--MQeRunnableInstance | +--com.ibm.mqe.communications.MQeServletWrapper
The MQeServletWrapper class provides the interface to allow a servlet to receive WebSphere MQ Everyplace HTTP requests and pass them on to the queue manager. It is the responsibility of the servlet to instantiate the queue manager, ensure there is only one queue manager running per JVM and to correctly close the queue manager.
Constructor Summary | |
MQeServletWrapper()
|
Method Summary | |
byte[] |
processPost(byte[] data)
Provides the functionality to process the incoming request. |
void |
setListenerProperties(long chnlTimeout,
int maxChnl)
Set the listener properties for the channel timeout and maximum number of channels allowed. |
void |
startWrapper()
Start the wrapper. |
void |
stopWrapper()
This method must be called in order to correctly stop the background thread responsible for the channel timeout for incoming channels. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MQeServletWrapper()
Method Detail |
public void setListenerProperties(long chnlTimeout, int maxChnl)
chnlTimeout
- Time in milliseconds a channel may be idle before being closedmaxChnl
- Maximum number of channels allowed, zero denotes no maximum set
public void startWrapper() throws java.lang.Exception
java.lang.Exception
public byte[] processPost(byte[] data) throws MQeException
MQeException
- if code is MQe.Except_NotActive call startWrapper()public void stopWrapper()
|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |