Examples of TopicDefinition


Examples of net.timewalker.ffmq3.management.destination.definition.TopicDefinition

           
            // Check temporary destinations scope (JMS Spec 4.4.3 p2)
            session.checkTemporaryDestinationScope(localTopic);
           
            // Deploy a local queue for this consumer
            TopicDefinition topicDef = this.localTopic.getDefinition();
            QueueDefinition tempDef = topicDef.createQueueDefinition(topicRef.getTopicName(), subscriberId, !isDurable());           
            if (engine.localQueueExists(tempDef.getName()))
                this.localQueue = engine.getLocalQueue(tempDef.getName());
            else
                this.localQueue = engine.createQueue(tempDef);
           
View Full Code Here

Examples of net.timewalker.ffmq3.management.destination.definition.TopicDefinition

    }
   
    private String processCreateTopic( Message msg ) throws JMSException
    {
        Settings topicSettings = createSettings(msg);
        TopicDefinition topicDef = new TopicDefinition(topicSettings);

        log.debug("Creating topic : "+topicDef);
        engine.createTopic(topicDef);
       
        // Success
View Full Code Here

Examples of net.timewalker.ffmq3.management.destination.definition.TopicDefinition

            File[] topicDescriptors = DescriptorTools.getDescriptorFiles(definitionDir,"topic-",".properties");
            if (topicDescriptors != null)
            {
                for (int i = 0 ; i < topicDescriptors.length ; i++)
                {
                    TopicDefinition topicDef = loadTopicDefinition(topicDescriptors[i]);
                    topicDefinitions.put(topicDef.getName(), topicDef);
                }
            }
            log.debug("Loaded "+topicDefinitions.size()+" topic definitions");
        }
    }
View Full Code Here

Examples of net.timewalker.ffmq3.management.destination.definition.TopicDefinition

        queueDefinitions.remove(queueDef.getName());
    }

    public TopicDefinition getTopicDefinition( String topicName ) throws JMSException
    {
        TopicDefinition topicDef = (TopicDefinition)topicDefinitions.get(topicName);
        if (topicDef == null
        {
            topicDef = loadTopicDefinition(topicName);
            if (topicDef == null)
                return null;
View Full Code Here

Examples of net.timewalker.ffmq3.management.destination.definition.TopicDefinition

            throw new FFMQException("Cannot access topic definition descriptor : "+topicDescriptor.getAbsolutePath(),"FS_ERROR");
       
        Settings topicSettings = new Settings();
        topicSettings.readFrom(topicDescriptor);

        return new TopicDefinition(topicSettings);
    }
View Full Code Here

Examples of net.timewalker.ffmq3.management.destination.definition.TopicDefinition

    /**
     * Create a topic definition from this template
     */
    public TopicDefinition createTopicDefinition( String topicName , boolean temporary )
    {
        TopicDefinition def = new TopicDefinition();
        def.setName(topicName);
        def.setTemporary(temporary);
        copyAttributesTo(def);
       
        return def;
    }
View Full Code Here

Examples of net.timewalker.ffmq3.management.destination.definition.TopicDefinition

            }
        }
        String[] topicNames = destinationDefinitionProvider.getAllTopicNames();
        for (int i = 0 ; i < topicNames.length ; i++)
        {
            TopicDefinition topicDef = destinationDefinitionProvider.getTopicDefinition(topicNames[i]);
            if (topicDef.isTemporary())
            {
                log.info("Deleting old temporary topic : "+topicNames[i]);
                deleteTopic(topicNames[i]);
            }
        }
View Full Code Here

Examples of net.timewalker.ffmq3.management.destination.definition.TopicDefinition

       
        TopicTemplate topicTemplate = destinationTemplateProvider.getTopicTemplate(templateName);
        if (topicTemplate == null)
            throw new FFMQException("Topic template does not exist : "+templateName,"MISSING_TEMPLATE");

       TopicDefinition tempDef = topicTemplate.createTopicDefinition(topicName, true);
       return createTopic(tempDef);
    }
View Full Code Here

Examples of net.timewalker.ffmq3.management.destination.definition.TopicDefinition

            {
                undeployTopic(topic);
                log.debug("Undeployed local topic : "+topicName);
            }
               
            TopicDefinition topicDef = destinationDefinitionProvider.getTopicDefinition(topicName);
            if (topicDef != null)
                destinationDefinitionProvider.removeTopicDefinition(topicName);
        }
    }
View Full Code Here

Examples of net.timewalker.ffmq3.management.destination.definition.TopicDefinition

        }
    }
   
    private LocalTopic loadOrAutoCreateTopic( String topicName ) throws JMSException
    {
        TopicDefinition topicDef = destinationDefinitionProvider.getTopicDefinition(topicName);
        if (topicDef != null)
        {
            LocalTopic topic = new LocalTopic(topicDef);
            deployTopic(topic);
            return topic;
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.