axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michele Mazzucco <>
Subject [Axis2] Asynchronous receiver misses messages
Date Thu, 17 Aug 2006 11:21:45 GMT
Hi all,

I'm experience a big problem when using an asynchronous (dual channel)
client: some messages are lost.
More formally, is the client has to wait for one message only, it works
fine, while if it has to wait for many responses some messages are lost
(please note that they are sent by the server). The callback receiver
I'm using is the following:

private static final class QospCallback extends Callback {

	private final int toReceive;

	private int received;

	QospCallback(int toSend) {
		this.toReceive = toSend;
		this.received = 0;

	public void onComplete(AsyncResult result) {
		if (log.isInfoEnabled()) {"Received respose [" + 							(received) + "/" +
this.toReceive + "]");
	} // -- onComplete()

	public void onError(Exception e) {
		if (log.isEnabledFor(Level.ERROR)) {
			log.error("Failed to receive msg #" + 							this.received);
	} // -- onError()

	public void setComplete(boolean complete) {
		super.setComplete(this.received == 						this.toReceive);

	public boolean isComplete() {
		return (this.received == this.toReceive);

} // END QospCallback

The options used by the ServiceClient are just:


This (as expected) makes no difference for what concerns the message
options.setProperty(HTTPConstants.CHUNKED, Boolean.FALSE);

while this
options.setProperty(HTTPConstants.REUSE_HTTP_CLIENT, Boolean.TRUE);
prevent messages from beeing delivered

Any suggest would be appreciated,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message