Package org.jboss.jms.delegate

Examples of org.jboss.jms.delegate.SessionEndpoint


      }
   }

   public ResponseSupport serverInvoke() throws Exception
   {
      SessionEndpoint endpoint =
         (SessionEndpoint)Dispatcher.instance.getTarget(objectId);
     
      if (endpoint == null)
      {
         throw new IllegalStateException("Cannot find object in dispatcher with id " + objectId);
      }
     
      endpoint.cancelDeliveries(cancels);
     
      return null;
   }
View Full Code Here


      queueName = is.readUTF();
   }

   public ResponseSupport serverInvoke() throws Exception
   {
      SessionEndpoint endpoint =
         (SessionEndpoint)Dispatcher.instance.getTarget(objectId);
     
      if (endpoint == null)
      {
         throw new IllegalStateException("Cannot find object in dispatcher with id " + objectId);
      }
     
      return new SessionCreateQueueResponse(endpoint.createQueue(queueName));
   }
View Full Code Here

/*     */     }
/*     */   }
/*     */
/*     */   public ResponseSupport serverInvoke() throws Exception
/*     */   {
/*  82 */     SessionEndpoint endpoint = (SessionEndpoint)Dispatcher.instance.getTarget(this.objectId);
/*     */
/*  85 */     if (endpoint == null)
/*     */     {
/*  87 */       throw new IllegalStateException("Cannot find object in dispatcher with id " + this.objectId);
/*     */     }
/*     */
/*  90 */     endpoint.acknowledgeDeliveries(this.acks);
/*     */
/*  92 */     return null;
/*     */   }
View Full Code Here

/*  87 */     this.autoFlowControl = is.readBoolean();
/*     */   }
/*     */
/*     */   public ResponseSupport serverInvoke() throws Exception
/*     */   {
/*  92 */     SessionEndpoint endpoint = (SessionEndpoint)Dispatcher.instance.getTarget(this.objectId);
/*     */
/*  95 */     if (endpoint == null)
/*     */     {
/*  97 */       throw new IllegalStateException("Cannot find object in dispatcher with id " + this.objectId);
/*     */     }
/*     */
/* 100 */     return new SessionCreateConsumerDelegateResponse((ClientConsumerDelegate)endpoint.createConsumerDelegate(this.dest, this.selector, this.noLocal, this.subName, this.connectionConsumer, this.autoFlowControl));
/*     */   }
View Full Code Here

/* 69 */     this.selector = readNullableString(is);
/*    */   }
/*    */
/*    */   public ResponseSupport serverInvoke() throws Exception
/*    */   {
/* 74 */     SessionEndpoint endpoint = (SessionEndpoint)Dispatcher.instance.getTarget(this.objectId);
/*    */
/* 77 */     if (endpoint == null)
/*    */     {
/* 79 */       throw new IllegalStateException("Cannot find object in dispatcher with id " + this.objectId);
/*    */     }
/*    */
/* 82 */     return new SessionCreateBrowserDelegateResponse((ClientBrowserDelegate)endpoint.createBrowserDelegate(this.dest, this.selector));
/*    */   }
View Full Code Here

/* 65 */     this.ack = new DefaultAck(deliveryId);
/*    */   }
/*    */
/*    */   public ResponseSupport serverInvoke() throws Exception
/*    */   {
/* 70 */     SessionEndpoint endpoint = (SessionEndpoint)Dispatcher.instance.getTarget(this.objectId);
/*    */
/* 73 */     if (endpoint == null)
/*    */     {
/* 75 */       throw new IllegalStateException("Cannot find object in dispatcher with id " + this.objectId);
/*    */     }
/*    */
/* 78 */     boolean res = endpoint.acknowledgeDelivery(this.ack);
/*    */
/* 80 */     return new SessionAcknowledgeDeliveryResponse(res);
/*    */   }
View Full Code Here

/*  71 */     this.cancel = new DefaultCancel(deliveryId, deliveryCount, expired, reachedMax);
/*     */   }
/*     */
/*     */   public ResponseSupport serverInvoke() throws Exception
/*     */   {
/*  76 */     SessionEndpoint endpoint = (SessionEndpoint)Dispatcher.instance.getTarget(this.objectId);
/*     */
/*  79 */     if (endpoint == null)
/*     */     {
/*  81 */       throw new IllegalStateException("Cannot find object in dispatcher with id " + this.objectId);
/*     */     }
/*     */
/*  84 */     endpoint.cancelDelivery(this.cancel);
/*     */
/*  86 */     return null;
/*     */   }
View Full Code Here

/*  83 */     this.sessionID = is.readUTF();
/*     */   }
/*     */
/*     */   public ResponseSupport serverInvoke() throws Exception
/*     */   {
/*  88 */     SessionEndpoint endpoint = (SessionEndpoint)Dispatcher.instance.getTarget(this.objectId);
/*     */
/*  91 */     if (endpoint == null)
/*     */     {
/*  93 */       throw new IllegalStateException("Cannot find object in dispatcher with id " + this.objectId);
/*     */     }
/*     */
/*  96 */     endpoint.recoverDeliveries(this.dels, this.sessionID);
/*     */
/*  98 */     return null;
/*     */   }
View Full Code Here

/* 62 */     this.dest = JBossDestination.readDestination(is);
/*    */   }
/*    */
/*    */   public ResponseSupport serverInvoke() throws Exception
/*    */   {
/* 67 */     SessionEndpoint endpoint = (SessionEndpoint)Dispatcher.instance.getTarget(this.objectId);
/*    */
/* 70 */     if (endpoint == null)
/*    */     {
/* 72 */       throw new IllegalStateException("Cannot find object in dispatcher with id " + this.objectId);
/*    */     }
/*    */
/* 75 */     endpoint.addTemporaryDestination(this.dest);
/*    */
/* 77 */     return null;
/*    */   }
View Full Code Here

/* 62 */     this.dest = JBossDestination.readDestination(is);
/*    */   }
/*    */
/*    */   public ResponseSupport serverInvoke() throws Exception
/*    */   {
/* 67 */     SessionEndpoint endpoint = (SessionEndpoint)Dispatcher.instance.getTarget(this.objectId);
/*    */
/* 70 */     if (endpoint == null)
/*    */     {
/* 72 */       throw new IllegalStateException("Cannot find object in dispatcher with id " + this.objectId);
/*    */     }
/*    */
/* 75 */     endpoint.deleteTemporaryDestination(this.dest);
/*    */
/* 77 */     return null;
/*    */   }
View Full Code Here

TOP

Related Classes of org.jboss.jms.delegate.SessionEndpoint

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.