Package org.apache.cxf.endpoint

Examples of org.apache.cxf.endpoint.Server.stop()


  logger.info("destroying endpoints..");

  for (Map.Entry<String, Server> element : webservices.entrySet()) {
      String wsUrl = element.getKey();
      Server entrypoint = element.getValue();
      entrypoint.stop();
      logger.info("endpoint {} destroyed.", wsUrl);
      webservices.remove(element.getKey());
  }

    }
View Full Code Here


                server1.stop();
            }

            if (server2 != null) {
                server2.getDestination().shutdown();
                server2.stop();
            }
           
        }
    }
View Full Code Here

            Server server = ei.getServer();
           
            LOG.info("Stopping CXF Endpoint at "
                + server.getDestination().getAddress().getAddress().getValue());
            server.getDestination().shutdown();
            server.stop();
        } catch (Exception ex) {
            // continue
        }
       
        if (ei.isPublished()) {
View Full Code Here

   
            // Wait for the service tracker in the test bundle to register a service with the test result
            ServiceReference ref = waitService(String.class.getName(), "(testResult=test1)");
            Assert.assertEquals("HiOSGi", ref.getProperty("result"));
        } finally {
            server.stop();
            Thread.currentThread().setContextClassLoader(cl);
        }
    }
   
    private ServiceReference waitService(String cls, String filter) throws Exception {       
View Full Code Here

                server1.stop();
            }

            if (server2 != null) {
                server2.getDestination().shutdown();
                server2.stop();
            }
           
        }
    }
View Full Code Here

                server1.stop();
            }

            if (server2 != null) {
                server2.getDestination().shutdown();
                server2.stop();
            }
           
        }
    }
View Full Code Here

        synchronized (servantsCache) {
            if (!servantsCache.isEmpty()) {
                Iterator<Server> servants = servantsCache.iterator();
                while (servants.hasNext()) {
                    Server servant = servants.next();
                    servant.stop();                   
                }
                servantsCache.clear();
            }
        }
    }
View Full Code Here

   
            Document doc2 = utils.getDocument(message, baseUri, map, ctx, server.getEndpoint().getEndpointInfo());
   
            assertFalse(doc == doc2);
        } finally {
            server.stop();
        }
    }
}
View Full Code Here

                Thread.sleep(1000);
            } catch (InterruptedException ex) {
                ex.printStackTrace();
            }
        }
        endToEndpoint.stop();
        if (TestingEndToEndpointImpl.RECEIVED_ENDS.get() != 1) {
            Assert.fail("TestingEndToEndpointImpl should have received 1 subscription end notification but received "
                    + TestingEndToEndpointImpl.RECEIVED_ENDS.get());
        }
    }
View Full Code Here

                Thread.sleep(1000);
            } catch (InterruptedException ex) {
                ex.printStackTrace();
            }
        }
        eventSinkServer.stop();
        if (TestingEventSinkImpl.RECEIVED_FIRES.get() != 3) {
            Assert.fail("TestingEventSinkImpl should have received 3 events but received "
                + TestingEventSinkImpl.RECEIVED_FIRES.get());
        }
    }
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.