Examples of JndiContext


Examples of org.apache.camel.util.jndi.JndiContext

        assertEquals("bean.x", "world", myBean.x);
    }

    @Override
    protected Context createJndiContext() throws Exception {
        JndiContext answer = new JndiContext();
        answer.bind("myBean", myBean);
        return answer;
    }
View Full Code Here

Examples of org.apache.camel.util.jndi.JndiContext

        file = file.getAbsoluteFile();
        assertEquals("Bye World", IOConverter.toString(file));
    }

    protected Context createJndiContext() throws Exception {
        JndiContext answer = new JndiContext();
        answer.bind("myBean", new MyBean());
        return answer;
    }
View Full Code Here

Examples of org.apache.camel.util.jndi.JndiContext

        mock.assertIsSatisfied();
    }

    protected Context createJndiContext() throws Exception {
        JndiContext answer = new JndiContext();
        answer.bind("myBean", new MyBean());
        return answer;
    }
View Full Code Here

Examples of org.apache.camel.util.jndi.JndiContext

        Object response = template.sendBody("direct:start", "Start:");
        assertEquals("Start:onetwo", response);
    }

    protected Context createJndiContext() throws Exception {
        JndiContext answer = new JndiContext();
        answer.bind("one", new MyBean("one"));
        answer.bind("two", new MyBean("two"));
        return answer;
    }
View Full Code Here

Examples of org.apache.camel.util.jndi.JndiContext

        dead.assertIsSatisfied();
        result.assertIsSatisfied();
    }

    protected Context createJndiContext() throws Exception {
        JndiContext answer = new JndiContext();
        answer.bind("myBean", new MyBean());
        return answer;
    }
View Full Code Here

Examples of org.apache.camel.util.jndi.JndiContext

        assertEquals("bean body: " + myPredicate, expectedBody, myPredicate.body);
    }

    @Override
    protected Context createJndiContext() throws Exception {
        JndiContext answer = new JndiContext();
        answer.bind("myPredicate", myPredicate);
        return answer;
    }
View Full Code Here

Examples of org.apache.camel.util.jndi.JndiContext

        // Boot up a local RMI registry
        LocateRegistry.createRegistry(37541);

        // START SNIPPET: register
        JndiContext context = new JndiContext();
        context.bind("bye", new SayService("Good Bye!"));

        CamelContext camelContext = new DefaultCamelContext(context);
        // END SNIPPET: register

        // START SNIPPET: route
View Full Code Here

Examples of org.apache.camel.util.jndi.JndiContext

        assertEquals("bean foo: " + myBean, "bar", myBean.foo);
    }

    @Override
    protected Context createJndiContext() throws Exception {
        JndiContext answer = new JndiContext();
        answer.bind("myBean", myBean);
        return answer;
    }
View Full Code Here

Examples of org.apache.camel.util.jndi.JndiContext

    }


    @Override
    protected Context createJndiContext() throws Exception {
        JndiContext answer = new JndiContext();
        answer.bind("myBean", bean);
        return answer;
    }
View Full Code Here

Examples of org.apache.camel.util.jndi.JndiContext

    private DummyLifecycleStrategy dummy1 = new DummyLifecycleStrategy();
    private DummyLifecycleStrategy dummy2 = new DummyLifecycleStrategy();

    protected CamelContext createCamelContext() throws Exception {
        CamelContext context = new DefaultCamelContext(new JndiContext());
        context.addLifecycleStrategy(dummy1);
        context.addLifecycleStrategy(dummy2);
        return context;
    }
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.