Package org.jboss.ws.extensions.eventing.jaxws

Examples of org.jboss.ws.extensions.eventing.jaxws.Subscribe


         );
         requestProps.setMessageID(AddressingClientUtil.createMessageID());
         setRequestProperties((BindingProvider) eventSourcePort, requestProps);

         // subscription
         Subscribe request = new Subscribe();

         DeliveryType delivery = getDefaultDelivery();
         request.setDelivery(delivery);
         request.setEndTo(delivery.getNotifyTo());
         request.setFilter(getDefaultFilter());
         //request.setExpires(new Date());

         SubscribeResponse subscribeResponse = eventSourcePort.subscribeOp(request);
         assertNotNull(subscribeResponse);
View Full Code Here


         );
         requestProps.setMessageID(AddressingClientUtil.createMessageID());
         setRequestProperties((BindingProvider) eventSourcePort, requestProps);

         // subscription
         Subscribe request = new Subscribe();

         DeliveryType delivery = getDefaultDelivery();
         request.setDelivery(delivery);
         request.setEndTo(delivery.getNotifyTo());
         request.setFilter(getDefaultFilter());
         //request.setExpires(new Date());

         SubscribeResponse subscribeResponse = eventSourcePort.subscribeOp(request);
         assertNotNull(subscribeResponse);
View Full Code Here

        EventingConstants.SUBSCRIBE_ACTION, eventSourceURI.toString()
      );
      requestProps.setMessageID(AddressingClientUtil.createMessageID());
      setRequestProperties((BindingProvider)eventSourcePort, requestProps);

      Subscribe request = new Subscribe();
      DeliveryType delivery = getDefaultDelivery();
      request.setDelivery(delivery);
      request.setEndTo(delivery.getNotifyTo());
      request.setExpires(new Date(System.currentTimeMillis() - 1000 * 60 * 60)); // invalid lease time
      request.setFilter(getDefaultFilter());

      try
      {
         SubscribeResponse subscribeResponse = eventSourcePort.subscribeOp(request);
        fail("Subscription should fail due to invalid lease time");
View Full Code Here

            EventingConstants.SUBSCRIBE_ACTION, eventSourceURI.toString()
      );
      requestProps.setMessageID(AddressingClientUtil.createMessageID());
      setRequestProperties((BindingProvider)eventSourcePort, requestProps);

      Subscribe request = new Subscribe();
      DeliveryType delivery = getDefaultDelivery();
      request.setDelivery(delivery);
      request.setEndTo(delivery.getNotifyTo());
      request.setExpires(new Date(System.currentTimeMillis() + EventingConstants.MAX_LEASE_TIME + 1000));
      request.setFilter(getDefaultFilter());

      try
      {
         SubscribeResponse subscribeResponse = eventSourcePort.subscribeOp(request);
         fail("Subscription should fail due to exceedd max lease time");
View Full Code Here

      AddressingProperties reqProps = AddressingClientUtil.createDefaultProps(EventingConstants.SUBSCRIBE_ACTION, eventSourceURI);
      reqProps.setMessageID(AddressingClientUtil.createMessageID());
      SysmonUtil.setRequestProperties((BindingProvider)subscriptionPort, reqProps);

      // build subscription payload
      Subscribe request = new Subscribe();

      // default delivery type with notification EPR
      DeliveryType delivery = SysmonUtil.getDefaultDelivery();
      request.setDelivery(delivery);

      // receive endTo messages at the same port
      request.setEndTo(delivery.getNotifyTo());

      if (filterString != null)
      {
         // custom filter that applies to a certain hostname only
         FilterType filter = SysmonUtil.wrapFilterString(filterString);
View Full Code Here

TOP

Related Classes of org.jboss.ws.extensions.eventing.jaxws.Subscribe

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.