Package org.jboss.jms.delegate

Examples of org.jboss.jms.delegate.SessionEndpoint


      autoFlowControl = is.readBoolean();
   }

   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 SessionCreateConsumerDelegateResponse((ClientConsumerDelegate)endpoint.createConsumerDelegate(dest, selector, noLocal, subName, connectionConsumer, autoFlowControl));
   }
View Full Code Here


      sessionID = 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.recoverDeliveries(dels, sessionID);
     
      return null;
   }
View Full Code Here

      dest = JBossDestination.readDestination(is);     
   }

   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.addTemporaryDestination(dest);
     
      return null;
   }
View Full Code Here

      selector = readNullableString(is);
   }

   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 SessionCreateBrowserDelegateResponse((ClientBrowserDelegate)endpoint.createBrowserDelegate(dest, selector));
   }
View Full Code Here

      dest = JBossDestination.readDestination(is);     
   }

   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.deleteTemporaryDestination(dest);
     
      return null;
   }
View Full Code Here

      ack = new DefaultAck(deliveryId);
   }

   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);
      }
     
      boolean res = endpoint.acknowledgeDelivery(ack);
     
      return new SessionAcknowledgeDeliveryResponse(res);
   }
View Full Code Here

      cancel = new DefaultCancel(deliveryId, deliveryCount, expired, reachedMax);     
   }

   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.cancelDelivery(cancel);
     
      return null;
   }
View Full Code Here

      }
   }

   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.acknowledgeDeliveries(acks);
     
      return null;
   }
View Full Code Here

      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

      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

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.