Examples of UDDISubscriptionListenerPortType


Examples of org.uddi.v3_service.UDDISubscriptionListenerPortType

      if (bindingTemplate!=null) {
        if (AccessPointType.END_POINT.toString().equalsIgnoreCase(bindingTemplate.getAccessPointType())) {
          QName qName = new QName(SUBR_V3_NAMESPACE, SUBSCRIPTION_LISTENER);
          try {
            Service service = Service.create(new URL(bindingTemplate.getAccessPointUrl()), qName);
            UDDISubscriptionListenerPortType subscriptionListenerPort = (UDDISubscriptionListenerPortType) service.getPort(UDDISubscriptionListenerPortType.class);
            log.info("Sending out notification to " + bindingTemplate.getAccessPointUrl());
            subscriptionListenerPort.notifySubscriptionListener(body);
            //there maybe more chunks we have to send
            String chunkToken=body.getSubscriptionResultsList().getChunkToken();
            while(chunkToken!=null) {
              UddiEntityPublisher publisher = new UddiEntityPublisher();
              publisher.setAuthorizedName(modelSubscription.getAuthorizedName());
              log.debug("Sending out next chunk: " + chunkToken + " to " + bindingTemplate.getAccessPointUrl());
              getSubscriptionResults.setChunkToken(chunkToken);
              resultList = subscriptionImpl.getSubscriptionResults(getSubscriptionResults, publisher);
              body.setSubscriptionResultsList(resultList);
              subscriptionListenerPort.notifySubscriptionListener(body);
              chunkToken=body.getSubscriptionResultsList().getChunkToken();
            }
            //now log to the db that we completed sending the notification.
            Date notificationDate = new Date();
            modelSubscription.setLastNotified(notificationDate);
View Full Code Here

Examples of org.uddi.v3_service.UDDISubscriptionListenerPortType

    @Override
    public UDDISubscriptionListenerPortType getUDDISubscriptionListenerService(final String endpointURL)
        throws TransportException
    {
        final UDDISubscriptionListenerPortType currentSubscriptionListenerService = subscriptionListenerService.get() ;
        if (currentSubscriptionListenerService != null)
        {
            return currentSubscriptionListenerService ;
        }
        final String subscriptionListenerURL = getUDDINode(managerName, nodeName).getSubscriptionListenerUrl() ;
        final Service service = Service.create(WSDL_SUBSCRIPTION_LISTENER_SERVICE, QNAME_SUBSCRIPTION_LISTENER_SERVICE) ;
        final UDDISubscriptionListenerPortType newSubscriptionListenerService = (UDDISubscriptionListenerPortType) service.getPort(UDDISubscriptionListenerPortType.class) ;
        initialiseEndpoint(newSubscriptionListenerService, subscriptionListenerURL) ;
        if (subscriptionListenerService.compareAndSet(null, newSubscriptionListenerService))
        {
            return newSubscriptionListenerService ;
        }
View Full Code Here

Examples of org.uddi.v3_service.UDDISubscriptionListenerPortType

    @Override
    public UDDISubscriptionListenerPortType getUDDISubscriptionListenerService(final String endpointURL)
        throws TransportException
    {
        final UDDISubscriptionListenerPortType currentSubscriptionListenerService = subscriptionListenerService.get() ;
        if (currentSubscriptionListenerService != null)
        {
            return currentSubscriptionListenerService ;
        }
        final String subscriptionListenerURL = getUDDINode(managerName, nodeName).getSubscriptionListenerUrl() ;
        final UDDISubscriptionListenerPortType newSubscriptionListenerService = lookupService(jndiEnv, subscriptionListenerURL) ;
        if (subscriptionListenerService.compareAndSet(null, newSubscriptionListenerService))
        {
            return newSubscriptionListenerService ;
        }
        else
View Full Code Here

Examples of org.uddi.v3_service.UDDISubscriptionListenerPortType

    @Override
    public UDDISubscriptionListenerPortType getUDDISubscriptionListenerService(final String endpointURL)
        throws TransportException
    {
        final UDDISubscriptionListenerPortType current = uddiSubscriptionListenerPortTypeRef.get() ;
        if (current != null)
        {
            return current ;
        }
        final String subscriptionListenerUrl ;
        if (endpointURL == null)
        {
            try
            {
                final UDDIClerkManager manager = UDDIClientContainer.getUDDIClerkManager(managerName) ;
                subscriptionListenerUrl = manager.getClientConfig().getUDDINode(nodeName).getSubscriptionListenerUrl() ;
            }
            catch (final ConfigurationException ce)
            {
                throw new TransportException("Could not discover subscriptionListenerUrl for node " + nodeName, ce) ;
            }
        }
        else
        {
            subscriptionListenerUrl = endpointURL ;
        }
        final Object delegatePortType = createDelegate(subscriptionListenerUrl) ;
        final InvocationHandler handler = new TaskHandler(delegatePortType) ;
        final UDDISubscriptionListenerPortType uddiSubscriptionListenerPortType = (UDDISubscriptionListenerPortType) Proxy.newProxyInstance(classLoader,
            new Class[] {UDDISubscriptionListenerPortType.class}, handler) ;
        if (uddiSubscriptionListenerPortTypeRef.compareAndSet(null, uddiSubscriptionListenerPortType))
        {
            return uddiSubscriptionListenerPortType ;
        }
View Full Code Here

Examples of org.uddi.v3_service.UDDISubscriptionListenerPortType

      if (bindingTemplate!=null) {
        if (AccessPointType.END_POINT.toString().equalsIgnoreCase(bindingTemplate.getAccessPointType())) {
          QName qName = new QName(SUBR_V3_NAMESPACE, SUBSCRIPTION_LISTENER);
          try {
            Service service = Service.create(new URL(bindingTemplate.getAccessPointUrl()), qName);
            UDDISubscriptionListenerPortType subscriptionListenerPort = (UDDISubscriptionListenerPortType) service.getPort(UDDISubscriptionListenerPortType.class);
            log.info("Sending out notification to " + bindingTemplate.getAccessPointUrl());
            subscriptionListenerPort.notifySubscriptionListener(body);
            //there maybe more chunks we have to send
            String chunkToken=body.getSubscriptionResultsList().getChunkToken();
            while(chunkToken!=null) {
              UddiEntityPublisher publisher = new UddiEntityPublisher();
              publisher.setAuthorizedName(modelSubscription.getAuthorizedName());
              log.debug("Sending out next chunk: " + chunkToken + " to " + bindingTemplate.getAccessPointUrl());
              getSubscriptionResults.setChunkToken(chunkToken);
              resultList = subscriptionImpl.getSubscriptionResults(getSubscriptionResults, publisher);
              body.setSubscriptionResultsList(resultList);
              subscriptionListenerPort.notifySubscriptionListener(body);
              chunkToken=body.getSubscriptionResultsList().getChunkToken();
            }
            //now log to the db that we completed sending the notification.
            Date notificationDate = new Date();
            modelSubscription.setLastNotified(notificationDate);
View Full Code Here

Examples of org.uddi.v3_service.UDDISubscriptionListenerPortType

        Definition wsdlDefinition = new ReadWSDL().readWSDL("org/apache/juddi/v3/client/mapping/UDDIClientSubscriptionListener.wsdl");
       
        String bindingKey = wsdl2UDDI.registerBusinessService(
            SUBSCRIPTION_LISTENER_SERVICE_NAME,
            SUBSCRIPTION_LISTENER_PORT_NAME, listenerServiceUrl, wsdlDefinition).getBindingKey();
        UDDISubscriptionListenerPortType subscriptionListener = new UDDIClientSubscriptionListenerImpl(bindingKey, this);
        log.info("Bringing up a UDDIClientSubscriptionListenerImpl on Endpoint " + listenerServiceUrl.toExternalForm());
        listenerEndpoint = Endpoint.create(subscriptionListener);
        listenerEndpoint.publish(listenerServiceUrl.toExternalForm());
       
        log.info("Registering a CallbackSubscription to this endpoint using bindingKey " + bindingKey);
View Full Code Here

Examples of org.uddi.v3_service.UDDISubscriptionListenerPortType

      if (bindingTemplate!=null) {
        if (AccessPointType.END_POINT.toString().equalsIgnoreCase(bindingTemplate.getAccessPointType())) {
          QName qName = new QName(SUBR_V3_NAMESPACE, SUBSCRIPTION_LISTENER);
          try {
            Service service = Service.create(new URL(bindingTemplate.getAccessPointUrl()), qName);
            UDDISubscriptionListenerPortType subscriptionListenerPort = (UDDISubscriptionListenerPortType) service.getPort(UDDISubscriptionListenerPortType.class);
            log.info("Sending out notification to " + bindingTemplate.getAccessPointUrl());
            subscriptionListenerPort.notifySubscriptionListener(body);
            //there maybe more chunks we have to send
            String chunkToken=body.getSubscriptionResultsList().getChunkToken();
            while(chunkToken!=null) {
              UddiEntityPublisher publisher = new UddiEntityPublisher();
              publisher.setAuthorizedName(modelSubscription.getAuthorizedName());
              log.debug("Sending out next chunk: " + chunkToken + " to " + bindingTemplate.getAccessPointUrl());
              getSubscriptionResults.setChunkToken(chunkToken);
              resultList = subscriptionImpl.getSubscriptionResults(getSubscriptionResults, publisher);
              body.setSubscriptionResultsList(resultList);
              subscriptionListenerPort.notifySubscriptionListener(body);
              chunkToken=body.getSubscriptionResultsList().getChunkToken();
            }
            //now log to the db that we completed sending the notification.
            Date notificationDate = new Date();
            modelSubscription.setLastNotified(notificationDate);
View Full Code Here

Examples of org.uddi.v3_service.UDDISubscriptionListenerPortType

      if (bindingTemplate!=null) {
        if (AccessPointType.END_POINT.toString().equalsIgnoreCase(bindingTemplate.getAccessPointType())) {
          QName qName = new QName(SUBR_V3_NAMESPACE, SUBSCRIPTION_LISTENER);
          try {
            Service service = Service.create(new URL(bindingTemplate.getAccessPointUrl()), qName);
            UDDISubscriptionListenerPortType subscriptionListenerPort = (UDDISubscriptionListenerPortType) service.getPort(UDDISubscriptionListenerPortType.class);
            log.info("Sending out notification to " + bindingTemplate.getAccessPointUrl());
            subscriptionListenerPort.notifySubscriptionListener(body);
            //there maybe more chunks we have to send
            String chunkToken=body.getSubscriptionResultsList().getChunkToken();
            while(chunkToken!=null) {
              UddiEntityPublisher publisher = new UddiEntityPublisher();
              publisher.setAuthorizedName(modelSubscription.getAuthorizedName());
              log.debug("Sending out next chunk: " + chunkToken + " to " + bindingTemplate.getAccessPointUrl());
              getSubscriptionResults.setChunkToken(chunkToken);
              resultList = subscriptionImpl.getSubscriptionResults(getSubscriptionResults, publisher);
              body.setSubscriptionResultsList(resultList);
              subscriptionListenerPort.notifySubscriptionListener(body);
              chunkToken=body.getSubscriptionResultsList().getChunkToken();
            }
            //now log to the db that we completed sending the notification.
            Date notificationDate = new Date();
            modelSubscription.setLastNotified(notificationDate);
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.