Search in sources :

Example 1 with Base64DecodeService

use of com.adaptris.core.services.Base64DecodeService in project interlok by adaptris.

the class RequestReplyWorkflowTest method retrieveObjectForSampleConfig.

@Override
protected Object retrieveObjectForSampleConfig() {
    Channel c = new Channel();
    try {
        c.setConsumeConnection(new JmsConnection(new BasicActiveMqImplementation("tcp://localhost:61616")));
        c.setProduceConnection(new JmsConnection(new BasicActiveMqImplementation("tcp://localhost:2506")));
        RequestReplyWorkflow workflow = new RequestReplyWorkflow();
        workflow.getServiceCollection().addService(new Base64DecodeService());
        workflow.setConsumer(new PtpConsumer().withQueue("inputQueue"));
        workflow.setProducer(new PtpProducer().withQueue("outputQueue"));
        workflow.setReplyProducer(new PtpProducer().withQueue("TODO"));
        workflow.getReplyServiceCollection().addService(new Base64EncodeService());
        c.getWorkflowList().add(workflow);
        c.setUniqueId(UUID.randomUUID().toString());
        workflow.setUniqueId(UUID.randomUUID().toString());
    } catch (CoreException e) {
        throw new RuntimeException(e);
    }
    return c;
}
Also used : PtpConsumer(com.adaptris.core.jms.PtpConsumer) Base64EncodeService(com.adaptris.core.services.Base64EncodeService) BasicActiveMqImplementation(com.adaptris.core.jms.activemq.BasicActiveMqImplementation) MockChannel(com.adaptris.core.stubs.MockChannel) Base64DecodeService(com.adaptris.core.services.Base64DecodeService) JmsConnection(com.adaptris.core.jms.JmsConnection) PtpProducer(com.adaptris.core.jms.PtpProducer)

Aggregations

JmsConnection (com.adaptris.core.jms.JmsConnection)1 PtpConsumer (com.adaptris.core.jms.PtpConsumer)1 PtpProducer (com.adaptris.core.jms.PtpProducer)1 BasicActiveMqImplementation (com.adaptris.core.jms.activemq.BasicActiveMqImplementation)1 Base64DecodeService (com.adaptris.core.services.Base64DecodeService)1 Base64EncodeService (com.adaptris.core.services.Base64EncodeService)1 MockChannel (com.adaptris.core.stubs.MockChannel)1