Package org.jboss.ws.extensions.eventing.mgmt

Examples of org.jboss.ws.extensions.eventing.mgmt.SubscriptionTicket


            }
         }

         // invoke subscription manager
         SubscriptionManagerMBean subscriptionManager = getSubscriptionManager();
         SubscriptionTicket ticket = subscriptionManager.subscribe(
            eventSourceURI.getURI(),
            notifyTo, endTo,
            request.getExpires(),
            filter
         );

         // create the response element
         SubscribeResponse res = new SubscribeResponse();
         res.setExpires(ticket.getExpires());
         res.setSubscriptionManager(ticket.getSubscriptionManager());

         return res;

      }
      catch (SubscriptionError e)
View Full Code Here


            }
         }

         // invoke subscription manager
         SubscriptionManagerMBean subscriptionManager = getSubscriptionManager();
         SubscriptionTicket ticket = subscriptionManager.subscribe(
            eventSourceURI.getURI(),
            notifyTo, endTo,
            request.getExpires(),
            filter
         );

         // create the response element
         SubscribeResponse res = new SubscribeResponse();
         res.setExpires(ticket.getExpires());
         res.setSubscriptionManager(ticket.getSubscriptionManager());

         return res;

      }
      catch (SubscriptionError e)
View Full Code Here

      }
   }

   public void testSimpleSubscription() throws Exception
   {
      SubscriptionTicket subscriptionTicket = subscriptionManager.subscribe(
            eventSourceNS, eventSinkEndpoint, eventSinkEndpoint, null, null
      );

      assertNotNull(subscriptionTicket.getIdentifier());
      assertNotNull(subscriptionTicket.getExpires());
      assertTrue(subscriptionTicket.getExpires().getTime() > System.currentTimeMillis());
      assertNotNull(subscriptionTicket.getSubscriptionManager());
   }
View Full Code Here

/*     */         }
/*     */
/*     */       }
/*     */
/*  91 */       SubscriptionManagerMBean subscriptionManager = getSubscriptionManager();
/*  92 */       SubscriptionTicket ticket = subscriptionManager.subscribe(eventSourceURI.getURI(), notifyTo, endTo, request.getExpires(), filter);
/*     */
/* 100 */       SubscribeResponse res = new SubscribeResponse();
/* 101 */       res.setExpires(ticket.getExpires());
/* 102 */       res.setSubscriptionManager(ticket.getSubscriptionManager());
/*     */
/* 104 */       return res;
/*     */     }
/*     */     catch (SubscriptionError e)
/*     */     {
View Full Code Here

TOP

Related Classes of org.jboss.ws.extensions.eventing.mgmt.SubscriptionTicket

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.