Package org.jboss.jms.server.endpoint

Examples of org.jboss.jms.server.endpoint.SessionEndpoint


      connectionConsumer = 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));
   }
View Full Code Here


      checkForDuplicates = 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);
      }

      endpoint.send(msg, checkForDuplicates);
     
      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.recoverDeliveries(dels);
     
      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

      }
   }

   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

      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

      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

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

TOP

Related Classes of org.jboss.jms.server.endpoint.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.