Examples of SessionEndpoint


Examples of org.jboss.jms.delegate.SessionEndpoint

      topicName = 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 SessionCreateTopicResponse(endpoint.createTopic(topicName));
   }
View Full Code Here

Examples of org.jboss.jms.delegate.SessionEndpoint

      subName = 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);
      }
     
      endpoint.unsubscribe(subName);
     
      return null;
   }
View Full Code Here

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

Examples of org.jboss.jms.delegate.SessionEndpoint

      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

Examples of org.jboss.jms.delegate.SessionEndpoint

/*     */     }
/*     */   }
/*     */
/*     */   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

Examples of org.jboss.jms.delegate.SessionEndpoint

/*  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

Examples of org.jboss.jms.delegate.SessionEndpoint

/* 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

Examples of org.jboss.jms.delegate.SessionEndpoint

/* 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

Examples of org.jboss.jms.delegate.SessionEndpoint

/*  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

Examples of org.jboss.jms.delegate.SessionEndpoint

/*  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
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.