You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Rick Isaacs <re...@gmail.com> on 2007/11/19 19:35:55 UTC
Axis2 Sample EchoBlockingDualClient - Working a little better, but hangs
Hi
I got the Axis2 /Userguide sample EchoBlockingDualClient to execute better,
but the client hangs after the shutdown of the LoggingModule.
In C:\apache-tomcat-5.5.25\webapps\axis2\WEB-INF\samples\userguide\conf\conf\axis2.xml,
I uncommented the following:
<!-- ================================================= -->
<!-- Non-blocking http/s Transport Listener -->
!-- the non blocking http transport based on HttpCore + NIO extensions -->
<transportReceiver name="http"
class="org.apache.axis2.transport.nhttp.HttpCoreNIOListener">
<parameter name="port" locked="false">9000</parameter>
<parameter name="non-blocking" locked="false">true</parameter>
</transportReceiver>
Which is used by the client when started using the ant
run.client.blockingdual task.
Now the client runs to the end of main, then hangs as I do not know
how to terminate the listener thread.
run.client.nonblockingdual:
[java] ------------------------------------------ EchoNonBlockingDualClient
[java] [INFO] Deploying module: addressing-1.3
[java] [INFO] Deploying module: script-1.3
[java] [INFO] Deploying module: sample-logging
[java] [INFO] Deploying module: metadataExchange-1.3
[java] [INFO] Deploying module: ping-1.3
[java] [INFO] Deploying module: sample-logging
[java] [INFO] Deploying module: soapmonitor-1.3
[java] LoggingModule:init
[java] [INFO] script module activated
[java] [INFO] HTTP Listener starting on port : 9000
[java] waiting
[java] [INFO] Using simulated buffered Pipes for event-driven to
stream IO bridging
[java] callback
[java] <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsa="http://www.w3.
[java] [INFO] Listener Shutdown
[java] [INFO] Listener shut down
[java] LoggingModule:shutdown <<<< hangs here
ctrl-c
[java] Java Result: 1
BUILD SUCCESSFUL
Total time: 5 minutes 55 seconds
Terminate batch job (Y/N)?
The manual, probably old, that I was reading specified a
finalizeInvoke(), which in no longer available in the class.
The class Callback, used in the sample, is also deprecated.
Rick
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org