Disconnecting users from Oracle MWA

Posted by on Jan 26, 2011 in 11i, Applications, Oracle E-Business Suite | No Comments

These instructions are for E-Business Suite 11.5.10 CU2; they may or may not work in other versions.

For an MWA telnet server, or Listener, at a given port number, there is a command channel listening at the next highest port number.  For example, if the Listener is on port 21001, the command channel is on port 21002.  You can telnet to the command channel, query the Listener, and issue commands.

When shutting down Listeners with the mwactl.sh script, what actually happens is that the process will stop accepting new connections, and will exit after the last client disconnects.  If a client never disconnects, the Listener will continue to run.  This can be a problem if, like me, you cycle your Listeners to keep somewhat fresh JVMs running.  So, sometimes it is necessary to forcibly disconnect idle sessions, and I would prefer not to kill java processes through the OS if possible.

Continue below the fold for an example:

[tkyle@app1 ~]$ telnet localhost 21002
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
GET /tkyle,passw0rd,_,USERS HTTP/1.1
1. Username: JIMBOB, UserID: 1234, RespID: 12121, has been inactive for 44 minutes
Connection closed by foreign host.
[tkyle@app1 ~]$ telnet localhost 21002
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
tkyle,passw0rd,_,KILL JIMBOB
OK
Connection closed by foreign host.