Package org.objectweb.celtix.transports.jms

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


    protected static void populateContextEnvironment(JMSAddressPolicyType addrType, Properties env) {
       
        java.util.ListIterator listIter =  addrType.getJMSNamingProperty().listIterator();

        while (listIter.hasNext()) {
            JMSNamingPropertyType propertyPair = (JMSNamingPropertyType)listIter.next();
           
            if (null != propertyPair.getValue()) {
                env.setProperty(propertyPair.getName(), propertyPair.getValue());
            }
        }
    }
View Full Code Here


    // This is just a place holder for now it will be chaning in next task
    // when the new JMS address policies and configurations are introdced.
    public void testpopulateIncomingContextNonNull() throws Exception {
        JMSAddressPolicyType addrType =  new JMSAddressPolicyType();
       
        JMSNamingPropertyType prop = new JMSNamingPropertyType();
        prop.setName(Context.APPLET);
        prop.setValue("testValue");
        addrType.getJMSNamingProperty().add(prop);     
       
        prop.setName(Context.BATCHSIZE);
        prop.setValue("12");
        addrType.getJMSNamingProperty().add(prop);
       
       
        Properties env = new Properties();
        assertTrue(env.size() <= 0);
View Full Code Here

TOP

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

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.