Package org.apache.webbeans.jms

Examples of org.apache.webbeans.jms.JMSModel


    }

    private Connection createOrReturnQueueOrTopicConnection()
    {
        JMSModel jmsModel = this.jmsComponent.getJmsModel();

        try
        {
            if (jmsModel.getJmsType().equals(JMSType.QUEUE))
            {
                if (connections.containsKey(JMSType.QUEUE))
                {
                    return connections.get(JMSType.QUEUE);
                }
                else
                {
                    QueueConnectionFactory ccf = (QueueConnectionFactory) createOrReturnConnectionFactory();
                    QueueConnection qc = ccf.createQueueConnection();
                    connections.put(JMSType.QUEUE, qc);

                    return qc;
                }
            }
            else if (jmsModel.getJmsType().equals(JMSType.TOPIC))
            {
                if (connections.containsKey(JMSType.TOPIC))
                {
                    return connections.get(JMSType.TOPIC);
                }
View Full Code Here


       
    }

    private Destination createOrReturnQueueOrTopic()
    {
        JMSModel jmsModel = this.jmsComponent.getJmsModel();
        String jndiName = jmsModel.isJndiNameDefined() ? jmsModel.getJndiName() : jmsModel.getMappedName();

        if (dests.get(jndiName) != null)
        {
            return dests.get(jndiName);
        }
View Full Code Here

    }

    private Connection createOrReturnQueueOrTopicConnection()
    {
        JMSModel jmsModel = this.jmsComponent.getJmsModel();

        try
        {
            if (jmsModel.getJmsType().equals(JMSType.QUEUE))
            {
                if (connections.containsKey(JMSType.QUEUE))
                {
                    return connections.get(JMSType.QUEUE);
                }
                else
                {
                    QueueConnectionFactory ccf = (QueueConnectionFactory) createOrReturnConnectionFactory();
                    QueueConnection qc = ccf.createQueueConnection();
                    connections.put(JMSType.QUEUE, qc);

                    return qc;
                }
            }
            else if (jmsModel.getJmsType().equals(JMSType.TOPIC))
            {
                if (connections.containsKey(JMSType.TOPIC))
                {
                    return connections.get(JMSType.TOPIC);
                }
View Full Code Here

       
    }

    private Destination createOrReturnQueueOrTopic()
    {
        JMSModel jmsModel = this.jmsComponent.getJmsModel();
        String jndiName = jmsModel.isJndiNameDefined() ? jmsModel.getJndiName() : jmsModel.getMappedName();

        if (dests.get(jndiName) != null)
        {
            return dests.get(jndiName);
        }
View Full Code Here

                {
                    type = JMSType.TOPIC;
                }
               
                Annotation[] bindings = injectionPoint.getBindings().toArray(new Annotation[0]);
                JMSModel jmsModel = JMSManager.getInstance().getModel(type, bindings);
               
                JmsComponentImpl<T> bean = JmsComponentFactory.getJmsComponentFactory().getJmsComponent(jmsModel,injectionPointClazz);
               
                ManagerImpl.getManager().addBean(bean);
               
View Full Code Here

       
        String jndiName = name == null ? null : name.getTextTrim();
        String mapName = mappedName== null ? null : mappedName.getTextTrim();
       
       
        JMSModel model = new JMSModel(type,jndiName,mapName);       
        JMSManager.getInstance().addJmsModel(model);
       
        for(Annotation ann : bindingTypes)
        {
            model.addBinding(ann);
        }
    }
View Full Code Here

        String jndiName = name == null ? null : name.getTextContent().trim();
        String mapName = mappedName == null ? null : mappedName.getTextContent().trim();


        JMSModel model = new JMSModel(type, jndiName, mapName);
        JMSManager.getInstance().addJmsModel(model);

        for (Annotation ann : bindingTypes)
        {
            model.addBinding(ann);
        }

        //Adding JMS Beans
        OpenWebBeansJmsPlugin plugin = PluginLoader.getInstance().getJmsPlugin();
        BeanManagerImpl.getManager().addBean(plugin.getJmsBean(model));
View Full Code Here

    }

    private Connection createOrReturnQueueOrTopicConnection()
    {
        JMSModel jmsModel = this.jmsComponent.getJmsModel();

        try
        {
            if (jmsModel.getJmsType().equals(JMSType.QUEUE))
            {
                if (connections.containsKey(JMSType.QUEUE))
                {
                    return connections.get(JMSType.QUEUE);
                }
                else
                {
                    QueueConnectionFactory ccf = (QueueConnectionFactory) createOrReturnConnectionFactory();
                    QueueConnection qc = ccf.createQueueConnection();
                    connections.put(JMSType.QUEUE, qc);

                    return qc;
                }
            }
            else if (jmsModel.getJmsType().equals(JMSType.TOPIC))
            {
                if (connections.containsKey(JMSType.TOPIC))
                {
                    return connections.get(JMSType.TOPIC);
                }
View Full Code Here

       
    }

    private Destination createOrReturnQueueOrTopic()
    {
        JMSModel jmsModel = this.jmsComponent.getJmsModel();
        String jndiName = jmsModel.isJndiNameDefined() ? jmsModel.getJndiName() : jmsModel.getMappedName();

        if (dests.get(jndiName) != null)
        {
            return dests.get(jndiName);
        }
View Full Code Here

       
        String jndiName = name == null ? null : name.getTextTrim();
        String mapName = mappedName== null ? null : mappedName.getTextTrim();
       
       
        JMSModel model = new JMSModel(type,jndiName,mapName);       
        JMSManager.getInstance().addJmsModel(model);
       
        for(Annotation ann : bindingTypes)
        {
            model.addBinding(ann);
        }
       
        //Adding JMS Beans
        OpenWebBeansJmsPlugin plugin = PluginLoader.getInstance().getJmsPlugin();
        BeanManagerImpl.getManager().addBean(plugin.getJmsBean(model));
View Full Code Here

TOP

Related Classes of org.apache.webbeans.jms.JMSModel

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.