Examples of onComplete()


Examples of javax.servlet.AsyncListener.onComplete()

                                    asyncListenerRegistration.getRequest(), asyncListenerRegistration.getResponse(), t);
                            asyncListener.onError(asyncEvent);
                        } else {
                            AsyncEvent asyncEvent = new AsyncEvent(asyncContext,
                                    asyncListenerRegistration.getRequest(), asyncListenerRegistration.getResponse());
                            asyncListener.onComplete(asyncEvent);
                        }
                    } catch (Throwable e) {
                        container.getLogger().error(sm.getString("standardWrapper.async.listenerError",
                                getContainer().getName()), e);
                        exception(request, response, e);
View Full Code Here

Examples of mapwriter.tasks.Task.onComplete()

    boolean processed = false;
    Task task = this.taskQueue.poll();
    if (task != null) {
      if (task.isDone()) {
        task.printException();
        task.onComplete();
        processed = true;
      } else {
        // put entry back on top of queue
        this.taskQueue.push(task);
      }
View Full Code Here

Examples of org.apache.axis2.client.async.AxisCallback.onComplete()

                            Object callback = ((CallbackReceiver) msgReceiver)
                                    .lookupCallback(bean.getApplicationMessageMessageId());
                            if (callback != null) {
                                AxisCallback axisCallback = ((AxisCallback) callback);
                                axisCallback.onError(new Exception(message));
                                axisCallback.onComplete();
                            }
                        }
                    }
                }
                if (transaction != null && transaction.isActive()) transaction.commit();
View Full Code Here

Examples of org.apache.axis2.client.async.AxisCallback.onComplete()

                axisCallback.onFault(msgContext);
            } else {
                axisCallback.onMessage(msgContext);
            }
            // Either way we're done.
            axisCallback.onComplete();
            return;
        }

        // THIS NEXT PART WILL EVENTUALLY GO AWAY WHEN Callback DOES
View Full Code Here

Examples of org.apache.axis2.client.async.AxisCallback.onComplete()

                axisCallback.onFault(msgContext);
            } else {
                axisCallback.onMessage(msgContext);
            }
            // Either way we're done.
            axisCallback.onComplete();
            return;
        }

        // THIS NEXT PART WILL EVENTUALLY GO AWAY WHEN Callback DOES
View Full Code Here

Examples of org.apache.axis2.client.async.AxisCallback.onComplete()

                axisCallback.onFault(msgContext);
            } else {
                axisCallback.onMessage(msgContext);
            }
            // Either way we're done.
            axisCallback.onComplete();
            return;
        }
     
    }
View Full Code Here

Examples of org.apache.axis2.client.async.AxisCallback.onComplete()

                axisCallback.onFault(msgContext);
            } else {
                axisCallback.onMessage(msgContext);
            }
            // Either way we're done.
            axisCallback.onComplete();
            return;
        }

        // THIS NEXT PART WILL EVENTUALLY GO AWAY WHEN Callback DOES
View Full Code Here

Examples of org.apache.axis2.client.async.AxisCallback.onComplete()

                axisCallback.onFault(msgContext);
            } else {
                axisCallback.onMessage(msgContext);
            }
            // Either way we're done.
            axisCallback.onComplete();
            return;
        }

        // THIS NEXT PART WILL EVENTUALLY GO AWAY WHEN Callback DOES
View Full Code Here

Examples of org.apache.axis2.client.async.Callback.onComplete()

        String messageID    = relatesTO.getValue();
        Callback callback   = (Callback) callbackStore.get(messageID);

        if (callback != null) {
            callbackStore.remove(messageID);
            callback.onComplete(new AsyncResult(messageCtx));
        }
    }
}
View Full Code Here

Examples of org.apache.axis2.client.async.Callback.onComplete()

            if (envelope.hasFault()) {
                AxisFault axisFault =
                        Utils.getInboundFaultFromMessageContext(msgContext);
                callback.onError(axisFault);
            } else {
                callback.onComplete(result);
            }
        } catch (Exception e) {
            callback.onError(e);
        finally {
            callback.setComplete(true);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.