Package org.apache.juddi.subscription

Examples of org.apache.juddi.subscription.SubscriptionNotifier


  }
  @Test
  public void testGetSubscriptionResults()
    throws ConfigurationException, MalformedURLException, DispositionReportFaultMessage, DatatypeConfigurationException
  {
    SubscriptionNotifier notifier = new SubscriptionNotifier();
    notifier.cancel();
    Collection<Subscription> subscriptions = notifier.getAllAsyncSubscriptions();
    Assert.assertEquals(1, subscriptions.size());
    Subscription subscription = subscriptions.iterator().next();
    GetSubscriptionResults getSubscriptionResults = notifier.buildGetSubscriptionResults(subscription, new Date());
    getSubscriptionResults.setSubscriptionKey(subscription.getSubscriptionKey());
    UddiEntityPublisher publisher = new UddiEntityPublisher();
    publisher.setAuthorizedName(subscription.getAuthorizedName());
    SubscriptionResultsList resultList = notifier.getSubscriptionImpl().getSubscriptionResults(getSubscriptionResults, publisher);
    //We're expecting a changed service (since it was added in the
    Assert.assertNotNull(resultList.getServiceList());
    //We should detect these changes.
    boolean hasChanges = notifier.resultListContainsChanges(resultList);
    Assert.assertTrue(hasChanges);
    System.out.print(resultList);
    notifier.notify(getSubscriptionResults,resultList);
  }
View Full Code Here


    if (registry==null) {
      log.info("Starting jUDDI registry...");
      registry = new Registry();
     
      if (AppConfig.getConfiguration().getBoolean(Property.JUDDI_SUBSCRIPTION_NOTIFICATION, true)) {
        subscriptionNotifier = new SubscriptionNotifier();
      }
      if (AppConfig.getConfiguration().getBoolean(Property.JUDDI_JNDI_REGISTRATION, false)) {
        try {
          JNDIRegistration.getInstance().register();
        } catch (NamingException e) {
View Full Code Here

    if (registry==null) {
      log.info("Starting jUDDI registry...");
      registry = new Registry();
     
      if (AppConfig.getConfiguration().getBoolean(Property.JUDDI_SUBSCRIPTION_NOTIFICATION, true)) {
        subscriptionNotifier = new SubscriptionNotifier();
      }
      if (AppConfig.getConfiguration().getBoolean(Property.JUDDI_JNDI_REGISTRATION, false)) {
        try {
          int port = AppConfig.getConfiguration().getInteger(Property.JUDDI_RMI_PORT,0);
          JNDIRegistration.getInstance().register(port);
View Full Code Here

    if (registry==null) {
      log.info("Starting jUDDI registry...");
      registry = new Registry();
     
      if (AppConfig.getConfiguration().getBoolean(Property.JUDDI_SUBSCRIPTION_NOTIFICATION, true)) {
        subscriptionNotifier = new SubscriptionNotifier();
      }
      if (AppConfig.getConfiguration().getBoolean(Property.JUDDI_JNDI_REGISTRATION, false)) {
        try {
          int port = AppConfig.getConfiguration().getInteger(Property.JUDDI_RMI_PORT,0);
          JNDIRegistration.getInstance().register(port);
View Full Code Here

    if (registry==null) {
      log.info("Starting jUDDI registry...");
      registry = new Registry();
     
      if (AppConfig.getConfiguration().getBoolean(Property.JUDDI_SUBSCRIPTION_NOTIFICATION, true)) {
        subscriptionNotifier = new SubscriptionNotifier();
      }
      if (AppConfig.getConfiguration().getBoolean(Property.JUDDI_JNDI_REGISTRATION, false)) {
        try {
          int port = AppConfig.getConfiguration().getInteger(Property.JUDDI_RMI_PORT,0);
          JNDIRegistration.getInstance().register(port);
View Full Code Here

    if (registry==null) {
      log.info("Starting jUDDI registry...");
      registry = new Registry();
     
      if (AppConfig.getConfiguration().getBoolean(Property.JUDDI_SUBSCRIPTION_NOTIFICATION, true)) {
        subscriptionNotifier = new SubscriptionNotifier();
      }
      if (AppConfig.getConfiguration().getBoolean(Property.JUDDI_JNDI_REGISTRATION, false)) {
        try {
          JNDIRegistration.getInstance().register();
        } catch (NamingException e) {
View Full Code Here

TOP

Related Classes of org.apache.juddi.subscription.SubscriptionNotifier

Copyright © 2018 www.massapicom. 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.