Examples of LocalSession


Examples of net.timewalker.ffmq3.local.session.LocalSession

        return new RecoverResponse();
    }
   
    private CreateBrowserResponse processCreateBrowser( CreateBrowserQuery query ) throws JMSException
    {
        LocalSession session = lookupSession(query);
               
        session.createBrowser(query.getBrowserId(),
                          query.getQueue(),
                              query.getMessageSelector());
       
        return new CreateBrowserResponse();
    }
View Full Code Here

Examples of net.timewalker.ffmq3.local.session.LocalSession

   
    private RollbackMessageResponse processRollbackMessage( RollbackMessageQuery query ) throws JMSException
    {
      LocalConnection localConnection = getLocalConnection();
     
        LocalSession localSession = (LocalSession)localConnection.lookupRegisteredSession(query.getSessionId());
        if (localSession != null)
        {
            // Rollback undelivered prefetched messages
            List undeliveredMessageIDs = new ArrayList();
            undeliveredMessageIDs.add(query.getMessageId());
            localSession.rollbackUndelivered(undeliveredMessageIDs);
           
            LocalMessageConsumer consumer = (LocalMessageConsumer)localSession.lookupRegisteredConsumer(query.getConsumerId());
            if (consumer != null)
              consumer.restorePrefetchCapacity(1);
        }
       
        return new RollbackMessageResponse();
View Full Code Here

Examples of net.timewalker.ffmq3.local.session.LocalSession

        return new CloseBrowserEnumerationResponse();
    }
   
    private CreateConsumerResponse processCreateConsumer( CreateConsumerQuery query ) throws JMSException
    {
        LocalSession session = lookupSession(query);
        LocalMessageConsumer consumer = (LocalMessageConsumer)session.createConsumer(query.getConsumerId(),
                                                                                 query.getDestination(),
                                                                                     query.getMessageSelector(),
                                                                                     query.isNoLocal());
       
        // Start prefetching if we are receiving from a queue
View Full Code Here

Examples of net.timewalker.ffmq3.local.session.LocalSession

        return response;
    }
   
    private CreateTemporaryQueueResponse processCreateTemporaryQueue( CreateTemporaryQueueQuery query ) throws JMSException
    {
        LocalSession session = lookupSession(query);
        TemporaryQueue queue = session.createTemporaryQueue();
       
        CreateTemporaryQueueResponse response = new CreateTemporaryQueueResponse();
        response.setQueueName(queue.getQueueName());
        return response;
    }
View Full Code Here

Examples of net.timewalker.ffmq3.local.session.LocalSession

        return response;
    }
   
    private CreateTemporaryTopicResponse processCreateTemporaryTopic( CreateTemporaryTopicQuery query ) throws JMSException
    {
        LocalSession session = lookupSession(query);
        TemporaryTopic topic = session.createTemporaryTopic();
       
        CreateTemporaryTopicResponse response = new CreateTemporaryTopicResponse();
        response.setTopicName(topic.getTopicName());
        return response;
    }
View Full Code Here

Examples of net.timewalker.ffmq3.local.session.LocalSession

        return new SetClientIDResponse();
    }
   
    private CreateConsumerResponse processCreateDurableSubscriber( CreateDurableSubscriberQuery query ) throws JMSException
    {
        LocalSession session = lookupSession(query);
        LocalDurableTopicSubscriber subscriber = (LocalDurableTopicSubscriber)session.createDurableSubscriber(query.getConsumerId(),
                                                                                                          query.getTopic(),
                                                                                                              query.getName(),
                                                                                                              query.getMessageSelector(),
                                                                                                              query.isNoLocal());
       
View Full Code Here

Examples of net.timewalker.ffmq3.local.session.LocalSession

        return response;
    }
   
    private UnsubscribeResponse processUnsubscribe( UnsubscribeQuery query ) throws JMSException
    {
      LocalSession session = lookupSession(query);
      session.unsubscribe(query.getSubscriptionName());

        return new UnsubscribeResponse();
    }
View Full Code Here

Examples of net.timewalker.ffmq3.local.session.LocalSession

       
      synchronized (externalAccessLock)
    {
          checkNotClosed();
           
          LocalSession session = new LocalSession(sessionId,this,engine,transacted,acknowledgeMode);
          registerSession(session);
          return session;
    }
    }
View Full Code Here

Examples of org.cometd.bayeux.server.LocalSession

        // Wait for the long poll to establish
        Thread.sleep(1000);

        // Test publish triggered by an external event
        final LocalSession emitter = bayeux.newLocalSession("test_emitter");
        emitter.handshake();
        final String data = "test_data";
        bayeux.getChannel(channelName).publish(emitter, data);

        Assert.assertTrue(publishLatch.get().await(5, TimeUnit.SECONDS));
        // Make sure long poll is not responded
View Full Code Here

Examples of org.cometd.bayeux.server.LocalSession

        // Wait for the long poll to establish
        Thread.sleep(1000);

        // Test publish triggered by an external event
        final LocalSession emitter = bayeux.newLocalSession("test_emitter");
        emitter.handshake();
        final String data = "test_data";
        bayeux.getChannel(channelName).publish(emitter, data);

        Assert.assertTrue(publishLatch.get().await(5, TimeUnit.SECONDS));
        // Make sure long poll is responded
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.