Package org.apache.axis2.handlers

Examples of org.apache.axis2.handlers.AbstractHandler.cleanup()


      }
    }
    if(lastError != null) throw lastError;
   
    configContext.getListenerManager().stop();
    serviceClient.cleanup();
  }
// 
//  public void getSequenceIDTest () {
//   
//  }
View Full Code Here


    }

    if(lastError != null) throw lastError;

    configContext.getListenerManager().stop();
    serviceClient.cleanup();

  }
 
  /**
   * Test to check that when a sequence times out - it gets deleted after the timeout interval.
View Full Code Here

    serviceClient.fireAndForget(getPingOMBlock("ping2"));
   
    clientOptions.setProperty(SandeshaClientConstants.LAST_MESSAGE, "true");
    serviceClient.fireAndForget(getPingOMBlock("ping3"));
   
    serviceClient.cleanup();
  }
 
  private static OMElement getPingOMBlock(String text) {
    OMFactory fac = OMAbstractFactory.getOMFactory();
    OMNamespace namespace = fac.createOMNamespace(applicationNamespaceName,"ns1");
View Full Code Here

    }

    if(lastError != null) throw lastError;

    configContext.getListenerManager().stop();
    serviceClient.cleanup();

  }
 
}
View Full Code Here

                } catch (Exception e) {
                    log.error("Could not clean the transport", e);
                }

                try {
                    serviceClient.cleanup();
                } catch (Exception e) {
                    log.error("Could not clean service client", e);
                }
            }
        }
View Full Code Here

            // avoid race conditions in AxisConfiguration
            synchronized (_axisConfig) {
                // if the service has changed, discard the client and create a new one
                if (client != null) {
                    if (__log.isDebugEnabled()) __log.debug("Clean up and discard ServiceClient");
                    client.cleanup();
                }
                if (__log.isDebugEnabled())
                    __log.debug("Create a new ServiceClient for " + anonymousService.getName());
                client = new ServiceClient(_configContext, null);
                client.setAxisService(anonymousService);
View Full Code Here

    OMElement element = serviceClient.sendReceive(payload);
    printResult(element);

    Thread.sleep(3600);

    serviceClient.cleanup();

  }

    /**
     * test method for do paypal WS API calls
View Full Code Here

    OMElement element = serviceClient.sendReceive(payload);
    printResult(element);

    Thread.sleep(3600);

    serviceClient.cleanup();

  }

    public OMElement getPayload() {
        String version = getProperty("version", "61");
View Full Code Here

        //serviceClient.fireAndForget(payload);
        printResult(element);

        Thread.sleep(3600);

        serviceClient.cleanup();
    }

}
View Full Code Here

            targetService.setMetadataVersion(config.getMetadataVersion());

            Notification notification = new Notification(notificationType, targetService);
            serviceClient.fireAndForget(DiscoveryOMUtils.toOM(notification,
                    OMAbstractFactory.getOMFactory()));
            serviceClient.cleanup();

        } catch (Exception e) {
            throw new DiscoveryException("Error while sending the WS-Discovery notification " +
                    "for the service " + service.getName(), e);
        }
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.