Examples of TopicRef


Examples of net.timewalker.ffmq3.common.destination.TopicRef

       
        if (TestUtils.USE_EXTERNAL_SERVER)
        {
          queue1 = new QueueRef("TEST1");
            queue2 = new QueueRef("TEST2");
            topic1 = new TopicRef("TEST1");
            topic2 = new TopicRef("TEST2");
           
            // Purge queues first
            Connection connection = createQueueConnection();
            Session session = connection.createSession(true, Session.AUTO_ACKNOWLEDGE);
            MessageConsumer consumer = session.createConsumer(queue1);
View Full Code Here

Examples of net.timewalker.ffmq3.common.destination.TopicRef

    private void singleTopicConnectionReceiverTest( String testName , CommTestParameters params , DummyMessageFactory msgFactory ) throws Exception
    {
      TopicConnection connection = null;
      try
      {
          Topic topic = new TopicRef(params.destinationName);
         
          SynchronizationPoint startSynchro = new SynchronizationPoint();
          connection = createTopicConnection();
         
          // Start receivers
View Full Code Here

Examples of net.timewalker.ffmq3.common.destination.TopicRef

      }
    }
   
    protected void singleTopicConnectionListenerTest( String testName , CommTestParameters params , DummyMessageFactory msgFactory ) throws Exception
    {
        Topic topic = new TopicRef(params.destinationName);
       
        SynchronizationPoint startSynchro = new SynchronizationPoint();
        TopicConnection connection = createTopicConnection();

        // Start receivers
View Full Code Here

Examples of net.timewalker.ffmq3.common.destination.TopicRef

        }
    }
   
    protected void multiTopicConnectionReceiverTest( String testName , CommTestParameters params , DummyMessageFactory msgFactory ) throws Exception
    {
        Topic topic = new TopicRef(params.destinationName);
       
        SynchronizationPoint startSynchro = new SynchronizationPoint();
        TopicConnection[] receiverConnections = new TopicConnection[params.receiverCount];
        for (int n = 0 ; n < receiverConnections.length ; n++)
            receiverConnections[n] = createTopicConnection();
View Full Code Here

Examples of net.timewalker.ffmq3.common.destination.TopicRef

        }
    }
   
    protected void multiTopicConnectionListenerTest( String testName , CommTestParameters params , DummyMessageFactory msgFactory ) throws Exception
    {
        Topic topic = new TopicRef(params.destinationName);
       
        SynchronizationPoint startSynchro = new SynchronizationPoint();
        TopicConnection[] receiverConnections = new TopicConnection[params.receiverCount];
        for (int n = 0 ; n < receiverConnections.length ; n++)
            receiverConnections[n] = createTopicConnection();
View Full Code Here

Examples of net.timewalker.ffmq3.common.destination.TopicRef

       
        // Topic
        if (objClassName.equals(TopicRef.class.getName()))
        {
          String topicName = getRequiredAttribute(reference, "topicName");
          return new TopicRef(topicName);
        }
       
        // ConnectionFactory
        if (objClassName.equals(FFMQConnectionFactory.class.getName()))
          return new FFMQConnectionFactory(recreateConnectionFactoryEnv(reference));
View Full Code Here

Examples of net.timewalker.ffmq3.common.destination.TopicRef

        {
          // Dynamic queue or topic lookup
          if (nm.startsWith("queue/") && nm.length() > 6)
            return new QueueRef(nm.substring(nm.indexOf('/')+1));
          if (nm.startsWith("topic/") && nm.length() > 6)
            return new TopicRef(nm.substring(nm.indexOf('/')+1));
         
            throw new NameNotFoundException(name + " not found");
        }

        return answer;
View Full Code Here

Examples of net.timewalker.ffmq3.common.destination.TopicRef

          else
          if (destination instanceof Queue)
            dstMessage.setJMSDestination(new QueueRef(((Queue)destination).getQueueName()));
          else
          if (destination instanceof Topic)
            dstMessage.setJMSDestination(new TopicRef(((Topic)destination).getTopicName()));
        }
       
        dstMessage.setJMSExpiration(srcMessage.getJMSExpiration());
        dstMessage.setJMSMessageID(srcMessage.getJMSMessageID());
        dstMessage.setJMSPriority(srcMessage.getJMSPriority());
        dstMessage.setJMSRedelivered(srcMessage.getJMSRedelivered());
       
        dstMessage.setJMSReplyTo(srcMessage.getJMSReplyTo());
        Destination replyTo = srcMessage.getJMSReplyTo();
        if (replyTo != null)
        {
          // Do our best to convert the ref. to one of our native types
          if (replyTo instanceof DestinationRef)
            dstMessage.setJMSReplyTo(replyTo);
          else
          if (replyTo instanceof Queue)
            dstMessage.setJMSReplyTo(new QueueRef(((Queue)replyTo).getQueueName()));
          else
          if (replyTo instanceof Topic)
            dstMessage.setJMSReplyTo(new TopicRef(((Topic)replyTo).getTopicName()));
        }
       
        dstMessage.setJMSTimestamp(srcMessage.getJMSTimestamp());
        dstMessage.setJMSType(srcMessage.getJMSType());
       
View Full Code Here

Examples of net.timewalker.ffmq3.common.destination.TopicRef

    /* (non-Javadoc)
     * @see javax.jms.Session#createTopic(java.lang.String)
     */
    public Topic createTopic(String topicName) throws JMSException
    {
        return new TopicRef(topicName);
    }
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.