Package org.jboss.soa.esb.actions.cbr

Examples of org.jboss.soa.esb.actions.cbr.SxcXPathRouter$SxcXpathRoutingRule


    }

    private NamespaceContext test(String configName) throws MessageRouterException, IOException, SAXException, ConfigurationException {
        ESBConfigUtil esbConfig = new ESBConfigUtil(getClass().getResourceAsStream("config.xml"));
        ConfigTree configTree = esbConfig.getActionConfig("null-listener", configName);
        SxcXPathRouter router = new SxcXPathRouter();

        router.setConfigTree(configTree);
       
        Map<String, RoutingRule> map = router.getRoutingMap();
        assertEquals(3, map.size());
        assertNotNull(map.get("scat-red"));
        assertNotNull(map.get("scat-green"));
        assertNotNull(map.get("scat-blue"));

        return router.getNamespaceContext();
    }
View Full Code Here


    }

    public void test_routing(Message message, List objectLists) throws IOException, SAXException, ConfigurationException, MessageRouterException {
        ESBConfigUtil esbConfig = new ESBConfigUtil(getClass().getResourceAsStream("config.xml"));
        ConfigTree configTree = esbConfig.getActionConfig("null-listener", "5");
        SxcXPathRouter router = new SxcXPathRouter();

        router.setConfigTree(configTree);

        List<String> destinations = router.route(null, false, message, objectLists);
        assertEquals("[scat-green]", destinations.toString());       
    }
View Full Code Here

TOP

Related Classes of org.jboss.soa.esb.actions.cbr.SxcXPathRouter$SxcXpathRoutingRule

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.