Examples of ConfigTree


Examples of org.jboss.soa.esb.helpers.ConfigTree

    }
  }
 
  public void testFaultAsException() {
   
    ConfigTree config=new ConfigTree("test");
    config.setAttribute(BPELInvoke.OPERATION, TEST_OP);
    config.setAttribute(BPELInvoke.SERVICE, TEST_SERVICE);
   
    // Request message   
    TestBPELEngine bpelEngine=null;
    javax.xml.namespace.QName faultName=new javax.xml.namespace.QName("ns","lp");
   
View Full Code Here

Examples of org.jboss.soa.esb.helpers.ConfigTree

    }
  }
 
  public void testFaultAsMessage() {
   
    ConfigTree config=new ConfigTree("test");
    config.setAttribute(BPELInvoke.OPERATION, TEST_OP);
    config.setAttribute(BPELInvoke.SERVICE, TEST_SERVICE);
    config.setAttribute(BPELInvoke.ABORT_ON_FAULT, "false");
   
    // Request message   
    TestBPELEngine bpelEngine=null;
    javax.xml.namespace.QName faultName=new javax.xml.namespace.QName("ns","lp");
   
View Full Code Here

Examples of org.jboss.soa.esb.helpers.ConfigTree

   * configured part name before invoking the process, and similarly remove the part
   * name from the response and return as text.
   */
  public void testNamedPartText() {
   
    ConfigTree config=new ConfigTree("test");
    config.setAttribute(BPELInvoke.REQUEST_PART_NAME, REQ_TEST_PART);
    config.setAttribute(BPELInvoke.RESPONSE_PART_NAME, RESP_TEST_PART);
    config.setAttribute(BPELInvoke.OPERATION, TEST_OP);
    config.setAttribute(BPELInvoke.SERVICE, TEST_SERVICE);
   
    // Request message
    String reqTextMessageText="Hello World Request";
    String reqTextMessage="<"+TEST_MESSAGE_ELEM+">"+reqTextMessageText+"</"+TEST_MESSAGE_ELEM+">";
     
View Full Code Here

Examples of org.jboss.soa.esb.helpers.ConfigTree

        instance = new ScheduleProvider(schedulerConfig, schedules);

        try {
            for(ManagedLifecycle listener : listeners) {
                if(listener instanceof ScheduledEventListener) {
                    ConfigTree config = listener.getConfig();
                    String scheduleIdRef = config.getAttribute(ATTR_SCHEDULE_ID_REF);

                    if(scheduleIdRef != null) {
                        instance.addListener((ScheduledEventListener) listener, scheduleIdRef);
                    } else {
                        long frequency = config.getLongAttribute(ATTR_FREQUENCY, 10);
                        instance.addListener((ScheduledEventListener) listener, frequency);
                    }
                }
            }
        } catch (SchedulingException e) {
View Full Code Here

Examples of org.jboss.soa.esb.helpers.ConfigTree

        instance = new ScheduleProvider(schedulerConfig, schedules);

        try {
            for(ManagedLifecycle listener : listeners) {
                if(listener instanceof ScheduledEventListener) {
                    ConfigTree config = listener.getConfig();
                    String scheduleIdRef = config.getAttribute(ATTR_SCHEDULE_ID_REF);

                    if(scheduleIdRef != null) {
                        instance.addListener((ScheduledEventListener) listener, scheduleIdRef);
                    } else {
                        long frequency = config.getLongAttribute(ATTR_FREQUENCY, 10);
                        instance.addListener((ScheduledEventListener) listener, frequency);
                    }
                }
            }
        } catch (SchedulingException e) {
View Full Code Here

Examples of org.jboss.soa.esb.helpers.ConfigTree

        paths2.add(counterPath);
       
        entryPointsMap.put("EntryPoint1", paths1);
        entryPointsMap.put("EntryPoint2", paths2);
       
        final ConfigTree config = new CBRConfigTreeBuilder(true).ruleFile("JBossESBPricingRulesStateful.drl").entryPoints(entryPointsMap).build();
        // Will call checkMyParams which will populate the maps below using the contents from the ConfigTree.
        final ContentBasedRouter contentBasedRouter = new ContentBasedRouter(config);
       
        final Map<String, List<String>> entryPoints = contentBasedRouter.entryPointMap;
        final List<String> entryPoint1 = entryPoints.get("EntryPoint1");
View Full Code Here

Examples of org.jboss.soa.esb.helpers.ConfigTree

  }
 
    @Test
    public void testGetChannels() throws Exception
    {
      ConfigTree config = ConfigTree.fromXml(xml);
     
      Map<String,Channel> channel_map = RuleServiceCallHelper.getChannels(config);
      assertNotNull(channel_map);
      assertTrue(channel_map.size() == 3);
     
View Full Code Here

Examples of org.jboss.soa.esb.helpers.ConfigTree

   
    @Test
    public void testRunChannels() throws Exception
    {
      // create the statefulRuleInfo (including the channels)
      ConfigTree config = ConfigTree.fromXml(xml);
      Map<String,Channel> channel_map = RuleServiceCallHelper.getChannels(config);
      channel_map.remove("channel_3");
    RuleInfo ruleInfo = new RuleInfoBuilder("RuleServiceCallHelper.drl").channels(channel_map).build();
    StatefulRuleInfo statefulRuleInfo = new StatefulRuleInfoImpl(ruleInfo, true, false);
   
View Full Code Here

Examples of org.jboss.soa.esb.helpers.ConfigTree

  @Test
  public void routeSerializedMessage() throws MessageRouterException
  {
    Message message = createMessage( MessageType.JAVA_SERIALIZED );
    ConfigTree configTree = new CBRConfigTreeBuilder( true ).ruleFile( "JBossESBRules.drl").build();
    jbrRouter.setConfigTree( configTree );

    List<String> destinationServices = jbrRouter.route(null, false, message, null);
    assertNotNull(destinationServices);
    assertTrue(destinationServices.size()>0);
View Full Code Here

Examples of org.jboss.soa.esb.helpers.ConfigTree

  @Test
  public void routeSerializedMessageDecisionTableStateless() throws MessageRouterException
  {
    Message message = createMessage( MessageType.JAVA_SERIALIZED );

    ConfigTree configTree = new CBRConfigTreeBuilder( true ).decisionTable( "RuleBaseHelper.xls").build();
    jbrRouter.setConfigTree( configTree );

    List<String> destinationServices = jbrRouter.route( null, false, message, null);

    assertNotNull( destinationServices );
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.