Examples of JndiRegistry


Examples of org.apache.camel.impl.JndiRegistry

    private static int invoked;

    @Override
    protected JndiRegistry createRegistry() throws Exception {
        JndiRegistry jndi = super.createRegistry();
        jndi.bind("myExchangeFormatter", new MyExchangeFormatter());
        return jndi;
    }
View Full Code Here

Examples of org.apache.camel.impl.JndiRegistry

            }
        };
    }
   
    protected JndiRegistry createRegistry() throws Exception {
        JndiRegistry registry =  new JndiRegistry(createJndiContext());
        registry.bind("my", new MyComponent());
        return registry;
    }
View Full Code Here

Examples of org.apache.camel.impl.JndiRegistry

public class RestJettyGetTest extends BaseJettyTest {
   

    @Override
    protected JndiRegistry createRegistry() throws Exception {
        JndiRegistry jndi = super.createRegistry();
        jndi.bind("mybinding", new JettyRestHttpBinding());
        return jndi;
    }
View Full Code Here

Examples of org.apache.camel.impl.JndiRegistry

* Unit test for the HL7MLLP Codec.
*/
public class HL7MLLPCodecTest extends HL7TestSupport {

    protected JndiRegistry createRegistry() throws Exception {
        JndiRegistry jndi = super.createRegistry();

        // START SNIPPET: e1
        HL7MLLPCodec codec = new HL7MLLPCodec();
        codec.setCharset("iso-8859-1");
        codec.setConvertLFtoCR(true);

        jndi.bind("hl7codec", codec);
        // END SNIPPET: e1

        return jndi;
    }
View Full Code Here

Examples of org.apache.camel.impl.JndiRegistry

* Unit test for the HL7MLLP Codec using different start and end bytes.
*/
public class HL7MLLPCodecStandAndEndBytesTest extends HL7TestSupport {

    protected JndiRegistry createRegistry() throws Exception {
        JndiRegistry jndi = super.createRegistry();

        HL7MLLPCodec codec = new HL7MLLPCodec();
        codec.setCharset("iso-8859-1");
        // to test with different start and end bytes.
        codec.setStartByte('*');
        codec.setEndByte1('#');
        codec.setEndByte2('*');
        codec.setConvertLFtoCR(false);

        jndi.bind("hl7codec", codec);

        return jndi;
    }
View Full Code Here

Examples of org.apache.camel.impl.JndiRegistry

* Unit test for the HL7MLLP Codec.
*/
public class HL7MLLPCodecLongTest extends HL7TestSupport {

    protected JndiRegistry createRegistry() throws Exception {
        JndiRegistry jndi = super.createRegistry();

        // START SNIPPET: e1
        HL7MLLPCodec codec = new HL7MLLPCodec();
        codec.setCharset("iso-8859-1");

        jndi.bind("hl7codec", codec);
        // END SNIPPET: e1

        return jndi;
    }
View Full Code Here

Examples of org.apache.camel.impl.JndiRegistry

        super.setUp();
    }

    @Override
    protected JndiRegistry createRegistry() throws Exception {
        JndiRegistry jndi = super.createRegistry();
        jndi.bind("postProcessAction", action);
        return jndi;
    }
View Full Code Here

Examples of org.apache.camel.impl.JndiRegistry

        kmp.setKeyStore(ksp);

        SSLContextParameters sslContextParameters = new SSLContextParameters();
        sslContextParameters.setKeyManagers(kmp);

        JndiRegistry registry = super.createRegistry();
        registry.bind("mySSLContextParameters", sslContextParameters);

        return registry;
    }
View Full Code Here

Examples of org.apache.camel.impl.JndiRegistry

        super.setUp();
    }

    @Override
    protected JndiRegistry createRegistry() throws Exception {
        JndiRegistry jndi = super.createRegistry();
        jndi.bind("sortAscendingDate", new SortTerm[]{SortTerm.DATE});
        jndi.bind("sortDescendingDate", new SortTerm[]{SortTerm.REVERSE, SortTerm.DATE});
        jndi.bind("searchTerm", new SearchTermBuilder().subject("Camel").build());
        return jndi;
    }
View Full Code Here

Examples of org.apache.camel.impl.JndiRegistry

* Unit test for HL7 routing.
*/
public class HL7RouteTest extends HL7TestSupport {

    protected JndiRegistry createRegistry() throws Exception {
        JndiRegistry jndi = super.createRegistry();

        HL7MLLPCodec codec = new HL7MLLPCodec();
        codec.setCharset("iso-8859-1");

        jndi.bind("hl7codec", codec);

        MyHL7BusinessLogic logic = new MyHL7BusinessLogic();
        jndi.bind("hl7service", logic);

        return jndi;
    }
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.