Package org.objectweb.celtix.transports.jms

Examples of org.objectweb.celtix.transports.jms.JMSServerBehaviorPolicyType


        entry("JMSServerTransport Constructor");
        bus.sendEvent(new ComponentCreatedEvent(this));
    }
   
    private JMSServerBehaviorPolicyType getServerPolicy(Configuration conf) {
        JMSServerBehaviorPolicyType pol = conf.getObject(JMSServerBehaviorPolicyType.class, "jmsServer");
        if (pol == null) {
            pol = new JMSServerBehaviorPolicyType();
        }
        return pol;
    }
View Full Code Here


    //--Methods-----------------------------------------------------------------

    protected static void connect(JMSTransportBase transport) throws JMSException, NamingException {
        JMSAddressPolicyType  addrDetails = transport.getJmsAddressDetails();
        JMSServerBehaviorPolicyType serverPolicy = null;
        if (transport instanceof JMSServerTransport) {
            serverPolicy = ((JMSServerTransport)transport).getJMSServerBehaviourPolicy();
        }

        // get JMS connection resources and destination
View Full Code Here

        JMSServerTransport serverTransport = new JMSServerTransport(bus, ref);

        checkDefaultAddressFields(serverTransport.getJmsAddressDetails());

        JMSServerBehaviorPolicyType serverPolicy = serverTransport.getJMSServerBehaviourPolicy();

        assertTrue("JMSServerPolicy messageSelector should be null ",
                   serverPolicy.getMessageSelector() == null);
        assertTrue("JMSServerPolicy useMessageIDAsCorrelationID should be false ",
                   !serverPolicy.isUseMessageIDAsCorrelationID());
        assertTrue("JMSServerPolicy useMessageIDAsCorrelationID should be false ",
                   !serverPolicy.isTransactional());
        assertTrue("JMSServerPolicy durableSubscriberName should be null ",
                   serverPolicy.getDurableSubscriberName() == null);
    }
View Full Code Here

        JMSServerTransport serverTransport = new JMSServerTransport(bus, ref);

        checkNonDefaultAddressFields(serverTransport.getJmsAddressDetails());

        JMSServerBehaviorPolicyType serverPolicy = serverTransport.getJMSServerBehaviourPolicy();

        assertTrue("JMSServerPolicy messageSelector should be Celtix_message_selector ",
                   "Celtix_message_selector".equals(serverPolicy.getMessageSelector()));
        assertTrue("JMSServerPolicy useMessageIDAsCorrelationID should be true ",
                   serverPolicy.isUseMessageIDAsCorrelationID());
        assertTrue("JMSServerPolicy useMessageIDAsCorrelationID should be true ",
                   serverPolicy.isTransactional());
        assertTrue("JMSServerPolicy durableSubscriberName should be Celtix_subscriber ",
                   "Celtix_subscriber".equals(serverPolicy.getDurableSubscriberName()));
    }
View Full Code Here

TOP

Related Classes of org.objectweb.celtix.transports.jms.JMSServerBehaviorPolicyType

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.