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;
}
Aggregations