You can disable asynchronous input/output native transport
code in WebSphere® Application
Server by setting
the commClass WebContainer property.
When you set the commClass WebContainer property, WebSphere Application
Server uses the Java™ (JVM) New I/O code instead
of the asynchronous input/output library to return response data to
users. WebSphere searches
for asynchronous input/output libraries and uses the JVM New I/O code
if the libraries are not found.
To disable the asynchronous input/output native transport
with the WebContainer property:
- Set the commClass property by using a
wsadmin script.
- Change a group of servers by running the following jacl
script.
global AdminConfig
set srvlist [$AdminConfig list Server]
foreach srv $srvlist {
set name [$AdminConfig showAttribute $srv name]
if {$name == "server1" ||
$name == "server2"} {
set svc [$AdminConfig list TransportChannelService $srv]
set fact [$AdminConfig create TCPFactory $svc {}]
$AdminConfig create Property $fact {{name commClass} {value com.ibm.ws.tcp.channel.impl.NioTCPChannel}}
puts [$AdminConfig showAttribute $svc factories]
}
}
$AdminConfig save
- Change a stand-alone server by running the following jacl
script:
global AdminConfig
set svc [$AdminConfig list TransportChannelService]
set fact [$AdminConfig create TCPFactory $svc {}]
$AdminConfig create Property $fact {{name commClass} {value com.ibm.ws.tcp.channel.impl.NioTCPChannel}}
$AdminConfig save
- Edit the script for the WebSphere Application
Server.
- Optional: Reenable the asynchronous input/output
library by setting the value of the comClass property:
From: {{name
commClass} {value com.ibm.ws.tcp.channel.impl.NioTCPChannel}}
To: {{name
commClass} {value com.ibm.ws.tcp.channel.impl.AioTCPChannel}}