Thanks Martin and Deepal for your help with this. I believe that the addressing module is engaged on the server side - to be sure, I engaged it via the axis2-admin page. No change, unfortunately.
I've created a bug: https://issues.apache.org/jira/browse/AXIS2-5111 with the client and server code included. Thanks, Todd On Tue, Aug 2, 2011 at 3:54 PM, Deepal jayasinghe <deep...@gmail.com> wrote: > Hi Todd, > > Did you engage the addressing module in the server side ?. if not please > engage it and see the results. > > if you have engaged addressing module and you still see the issue then > it is definitely an Axis2 bug. Someone should have broken something, so > please create a JIRA, (need to fix this ASAP) > > Thanks. > Deepal > > Hi, > > > > I'm experimenting with asynchronous calls between an axis client and > > an axis server. The server is just the example1/MyService.java, > > slightly modified to add a delay of a minute before replying. The > > client is based on the EchoNonBlockingDualClient.java. I'm getting a > > Read timed out AxisFault after 30 seconds, which leads me to believe > > the client is leaving the channel open. > > > > Here's some of the client code, with the options: > > > > Options options = new Options(); > > options.setTo(targetEPR); > > options.setAction("urn:echo"); > > options.setTransportInProtocol(Constants.TRANSPORT_HTTP); > > options.setUseSeparateListener(true); > > > > //Callback to handle the response > > BetterAxisCallback callback = new BetterAxisCallback(); > > > > //Non-Blocking Invocation > > sender = new ServiceClient(); > > sender.engageModule(Constants.MODULE_ADDRESSING); > > sender.setOptions(options); > > sender.sendReceiveNonBlocking(payload, callback); > > > > //Wait till the callback receives the response. > > while(!callback.isComplete()) { > > Thread.sleep(1000); > > } > > > > Shouldn't this wait indefinitely for a response on the separate listener? > > > > Thanks, > > Todd > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org > For additional commands, e-mail: java-user-h...@axis.apache.org > >